This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-20
Channels
- # aleph (2)
- # boot (18)
- # cider (3)
- # cljs-dev (14)
- # cljsrn (28)
- # clojure (428)
- # clojure-austin (3)
- # clojure-hk (1)
- # clojure-ireland (5)
- # clojure-mexico (1)
- # clojure-quebec (2)
- # clojure-russia (49)
- # clojure-spec (138)
- # clojure-uk (45)
- # clojurescript (70)
- # core-async (1)
- # cursive (8)
- # datomic (13)
- # defnpodcast (3)
- # devops (1)
- # editors (4)
- # events (1)
- # funcool (14)
- # hoplon (17)
- # jobs-rus (1)
- # luminus (5)
- # mount (51)
- # off-topic (21)
- # om (9)
- # om-next (8)
- # onyx (43)
- # planck (6)
- # re-frame (13)
- # reagent (18)
- # ring-swagger (1)
- # spacemacs (17)
- # untangled (18)
- # vim (13)
- # yada (21)
@zane @kasuko In my case, it would be a great feature to be able to turn on and off. I mostly work in hiccup these days, so I would prefer my default vector indentation to be the alternative to the norm 🙂 I don't require the normal one, really
Until I do, off course, but then it would be excellent to be able to toggle back and forth
Third question (hehe :D): Is there a lisp mode command for moving an s-expression past the next s-expression?
For example:
[(sexp-a) (sexp-b)]
^pointer here
hit move-forward command
result:
[(sexp-b) (sexp-b)]
@reefersleep there is SPC k t
but your pointer would need to be at the beginning of the second sexp
@codonnell: that works great, but I wonder why there isn't an option to do it the other way? Since we're working on AST representations and those representations often take the shape of flat lists, I wonder why it isn't deemed a basic need to be able to switch the pointed element back and forth in the list. I've had use for it more than once, upon entering arguments in the wrong order 🙂
but thanks!
no problem. If that's functionality you're really after, you might be able to just write that function yourself
For example, someone here pasted a snippet that overrides SPC k w
to be more clojure friendly (wish I'd written down who to give them credit)
;; make wrapping friendly to Clojure/Pixie/Hy
(with-eval-after-load "evil-lisp-state"
;; undef SPC k w so we can generalize it
(evil-leader/set-key "kw" nil)
;; wrap using SPC k w ([{
(evil-leader/set-key "kw("
(lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "(")))
(evil-leader/set-key "kw["
(lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "[")))
(evil-leader/set-key "kw{"
(lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "{"))))
oooooo
nice!
I'm completely new to emacs-lisp, but I'd like to give it a go if I get the time
Thanks!
you're welcome
Spamming multiple channels with this but it’s good stuff: https://github.com/tonsky/FiraCode