This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-11
Channels
- # announcements (21)
- # aws (2)
- # babashka (20)
- # beginners (47)
- # bristol-clojurians (2)
- # calva (63)
- # cider (24)
- # clj-kondo (22)
- # cljs-dev (3)
- # cljsrn (6)
- # clojars (3)
- # clojure (147)
- # clojure-europe (21)
- # clojure-france (2)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (3)
- # clojure-spec (2)
- # clojure-uk (70)
- # clojurescript (37)
- # core-logic (6)
- # cursive (4)
- # data-science (2)
- # datomic (99)
- # events (1)
- # figwheel-main (20)
- # fulcro (26)
- # graalvm (6)
- # graphql (5)
- # kaocha (8)
- # leiningen (20)
- # meander (22)
- # nrepl (4)
- # off-topic (27)
- # pathom (5)
- # pedestal (3)
- # re-frame (20)
- # reagent (4)
- # shadow-cljs (43)
- # spacemacs (11)
- # tools-deps (55)
- # tree-sitter (6)
- # vim (8)
- # xtdb (18)
- # yada (14)
What I do now is sp-unwrap-sexp which gets rid of the outer parenthesis, and then I manually delete do. But is there a command that would also delete do ?
@didibus SPC k r
on a child (nested) expressions will replace the parent expression with the child. Unfortunately this will kill any other child expressions, so not quite what you want 😞
(do |(foo)
(bar)
(baz))
with my cursor before (foo)
if I do SPC k E
it should give what you wantDoes anyone else find it awkward to insert an org-mode
link at the end of a line? Since links get inserted before the point, and since you must be in normal mode to insert a link, the only way I've come up with to insert a link at the end of a line is:
1. a
to enter insert mode after the current character
A link:
^
2. <SPC>
to add a placeholder space
A link:
^
3. <ESC>
to enter normal mode, with the cursor on the placeholder space
A link:
^
4. ,il
to run org-insert-link
A link:
^
5. x
to delete the placeholder space
A link:
^
Curious whether anyone else has a better way.I usually type the text of the link first, then use v
or SPC v
to highlight that text. Then , i l
after I enter the URL the link text is already populated, so I just press RET
.
Got it. Do you have a similar workflow for when you want the text to be the title of the webpage?
I've never used that function, seems handy though. If its in the body of a text, I would just create an extra space before using it. Or if I forgot, insert the link without the space and use F [
to jump back to the start and i
to insert a space.