This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-26
Channels
- # announcements (1)
- # babashka (6)
- # beginners (12)
- # biff (39)
- # calva (4)
- # cider (5)
- # clj-commons (1)
- # clj-yaml (9)
- # clojure (42)
- # clojure-conj (1)
- # clojure-europe (8)
- # clojurescript-ios (1)
- # clr (1)
- # conjure (7)
- # data-science (1)
- # datalevin (9)
- # emacs (3)
- # helix (1)
- # honeysql (11)
- # hyperfiddle (60)
- # introduce-yourself (1)
- # lsp (26)
- # music (1)
- # off-topic (1)
- # pathom (2)
- # polylith (3)
- # releases (1)
- # sci (1)
- # scittle (21)
- # shadow-cljs (57)
- # spacemacs (3)
- # xtdb (38)
Does CIDER support dynamic indentation in ClojureScript files? For some reason this example is failing:
(defn a-fn
"A docstring"
[& args]
{:style/indent 1}
args)
But I can clearly see :style/indent 1
when I run (meta #'a-fn)
This data is relayed via the track-state
middleware, which if I recall correctly was not Clojure specific. I might be mistaken, though. I haven’t touched this code in ages and I almost never do anything with ClojureScript.
Basically track-state
passes some data to clojure-mode, so it can rebuild its indentation table.
FYI - Today I opted to make a small change that makes printing to the REPL a bit worse in a particular edge case (your REPL prompt is right at the top of the REPL window), but 10x faster https://github.com/clojure-emacs/cider/commit/2e213f92d7bd84da9bf3826a42edb43a4e2fe7b3