This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-16
Channels
- # announcements (2)
- # babashka (51)
- # beginners (165)
- # biff (39)
- # clara (1)
- # clj-kondo (20)
- # cljsrn (6)
- # clojure (64)
- # clojure-belgium (11)
- # clojure-conj (2)
- # clojure-europe (12)
- # clojure-nl (3)
- # clojure-norway (7)
- # clojure-uk (6)
- # clojurescript (11)
- # conf-proposals (1)
- # conjure (1)
- # core-async (19)
- # cursive (6)
- # data-science (16)
- # datomic (6)
- # deps-new (4)
- # fulcro (60)
- # funcool (3)
- # graalvm (9)
- # helix (14)
- # introduce-yourself (4)
- # jobs-discuss (13)
- # joyride (1)
- # kaocha (2)
- # malli (12)
- # off-topic (25)
- # polylith (9)
- # portal (3)
- # practicalli (1)
- # rdf (43)
- # re-frame (7)
- # reagent (5)
- # releases (5)
- # remote-jobs (8)
- # sci (5)
- # shadow-cljs (42)
- # squint (6)
- # xtdb (5)
Is there a way to export or at least view the cursive formatting rules (e.g. to use with cljfmt)?
Actually, looks like it’s spelled out fairly plainly in Editor -> Code Style -> Clojure -> Form Parameters. What I’m really looking for is how to translate the UI dialog into something I can also use with external formatting tools like cljfmt. Like “Export to cljfmt.edn.”
Unfortunately the cljfmt model doesn’t map very well onto how Cursive formats things. I’m planning to try to improve this, and improve the interop between the two, but there isn’t a good way to do this except manually right now.
Is one of the standard formatting tools (zprint, cljfmt (sounds like not), cljstyle) used under the hood or is it custom? Just curious. If I were trying to configure a pre-commit hook it would be nice to at least start with the same baseline formatter.