This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-06
Channels
- # announcements (58)
- # babashka (43)
- # babashka-sci-dev (22)
- # beginners (8)
- # biff (8)
- # calva (62)
- # circleci (3)
- # clerk (6)
- # clj-kondo (27)
- # cljsrn (9)
- # clojure (61)
- # clojure-austin (4)
- # clojure-conj (3)
- # clojure-europe (11)
- # clojure-losangeles (2)
- # clojure-nl (2)
- # clojure-norway (4)
- # clojure-spain (5)
- # clojure-uk (2)
- # clojurescript (51)
- # data-science (1)
- # datascript (4)
- # emacs (33)
- # events (14)
- # funcool (14)
- # gratitude (13)
- # introduce-yourself (1)
- # jobs (9)
- # lsp (58)
- # malli (23)
- # missionary (31)
- # nextjournal (9)
- # off-topic (35)
- # proletarian (2)
- # re-frame (5)
- # remote-jobs (7)
- # shadow-cljs (2)
- # spacemacs (7)
- # sql (26)
- # testing (12)
- # vim (1)
- # web-security (3)
- # xtdb (2)
Question about Evil Cleverparens safe structural editing
Example code:
(fn [a b]
(fn-with a)
(fn-with b))
So if I delete last line with d d
then closing parens is moved to line above as expected. But when I just need to comment out last line, using SPC ; ;
result is unbalanced code:
(fn [a b]
(fn-with a)
;; (fn-with b))
Is there any solution for this?(sorry I don't use spacemacs, but I have notifications for evil
as the maintainer) - what function is SPC ; ;
calling? As evil-cleverparens doesn't do commenting-out, I assume it's a lib like evil-comentary or evil-nerd-commenter which may be to blame.
I don't maintain either, but I do maintain evil-cleverparens. I could have a think about whether it should intercept/override evil-commentary and evil-nerd-commenter to add structural sensitivity, or even just provide bindings of it's own :thinking_face: