This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-27
Channels
- # announcements (2)
- # beginners (85)
- # boot (4)
- # calva (4)
- # cider (14)
- # cljdoc (8)
- # cljs-dev (5)
- # cljsrn (10)
- # clojure (101)
- # clojure-europe (1)
- # clojure-italy (6)
- # clojure-nl (12)
- # clojure-spec (4)
- # clojure-uk (71)
- # clojurescript (119)
- # core-async (20)
- # cursive (1)
- # datascript (2)
- # duct (3)
- # emacs (19)
- # fulcro (150)
- # graphql (1)
- # hoplon (2)
- # instaparse (2)
- # jobs (1)
- # jobs-discuss (11)
- # joker (9)
- # luminus (6)
- # lumo (1)
- # off-topic (33)
- # onyx (1)
- # quil (1)
- # re-frame (23)
- # reagent (11)
- # robots (2)
- # rum (6)
- # sql (1)
- # test-check (10)
- # unrepl (1)
I want to copy expression when my cursor at the start of it, same as that for function when my cursor is at the start, any ideas?
To be more clear about question, e.g Ctrk-k , kills expression, instead of killing i want to copy it
I believe the Emacs way is to mark to the end of line and copy with C-SPC C-e M-w
or to mark the sexp and copy with C-@ M-w
. That said, Smartparens has a function called sp-copy-sexp
(by default bound to C-M-w
) that does what you want. In Spacemacs it is bound to SPC k y
in Evil (actually it is evil-lisp-state-sp-copy-sexp
) and M-m k y
in Holy.
and want to copy from threading macro what i need to do is , Ctl-Space, then end of read-str paren and M-w to copy
But what i would like to copy threading macro expression itself without going end of expression
Hmm, do you know a package called expand region?
expand-region
I believe that is what most people would use to do what you want. Inside an expression, it allows you to expand selection by container. I can't live without it. 🙂
In Spacemacs it is in SPC v
, so you can keep pressing v
to expand until you reach the scope you want and then finally copy it.
You're welcome!
Yeah, there is always another package that we should be using.
I believe the Emacs way is to mark to the end of line and copy with C-SPC C-e M-w
or to mark the sexp and copy with C-@ M-w
. That said, Smartparens has a function called sp-copy-sexp
(by default bound to C-M-w
) that does what you want. In Spacemacs it is bound to SPC k y
in Evil (actually it is evil-lisp-state-sp-copy-sexp
) and M-m k y
in Holy.
Perhaps someone else has a use for this: I wrote an elisp function that converts the contents of cljx files to use reader conditionals: https://github.com/anthonygalea/cljx/blob/master/cljx.el#L31 Tried it on timbre https://github.com/ptaoussanis/timbre/pull/288/files Feedback welcome.
Is there a better formatted stack trace in emacs. I'm getting long lines spanning far outside the window and it's hard to keep track if it's debugging a long var value. Some form of bette rnavigation buffer or pretty print