This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-26
Channels
- # asami (3)
- # babashka (3)
- # beginners (45)
- # boot (3)
- # calva (6)
- # clojure (26)
- # clojure-dev (16)
- # clojure-europe (15)
- # clojure-norway (6)
- # clojure-uk (6)
- # clojurescript (34)
- # community-development (4)
- # conjure (3)
- # datascript (4)
- # datomic (4)
- # emacs (21)
- # events (1)
- # fulcro (16)
- # graalvm (5)
- # jackdaw (1)
- # kaocha (5)
- # lsp (74)
- # malli (8)
- # nbb (37)
- # off-topic (50)
- # pathom (5)
- # reagent (19)
- # ring (1)
- # shadow-cljs (60)
- # sql (3)
With smartparens you can do
(sp-local-pair sp-lisp-modes "(" ")" :unless '(sp-in-string-p))
Although that seems to break strictness when it's not in a string. I'm not sure how to modify the existing pair config
(defun jk/smartparens-clojure-mode-init ()
(sp-update-local-pairs '(:open "("
:close ")"
:actions (wrap insert autoskip navigate)
:unless (sp-in-string-p sp-point-before-same-p))))
(add-hook 'clojure-mode-hook 'jk/smartparens-clojure-mode-init)
No problem! It always bothered me too. Makes writing doc strings annoying. If I want editor help with the syntax I just put it into a separate file and slurp
it
@UE72GJS7J This seems to not behave correct in this case:
(fw/watch "." (fn [event]
(when
(#{:write :write|chmod} (:type event))
(println "hello!"))))
I was trying to wrap parens around _ (#{:write ...
at the underscore, but it didn't balance there anymoreHmm I'm not sure what you mean. If I have |#{:foo}
and I do sp-wrap-round
it gives me (#{:foo})
as it should. I'm also using evil-cleverparens and it works correctly there
I'm trying Emacs on an M2 mac for my first time ever.
I'm trying the simplest thing for now, namely emacsformacosx universal. It works fine, also not noticeably slow.
But the control key doesn't work - M-x describe-key
and then <control> <any letter>
will pretend I pressed nothing at all.
Does that sound familiar?