This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-25
Channels
- # aleph (9)
- # announcements (2)
- # babashka (32)
- # babashka-sci-dev (72)
- # beginners (77)
- # calva (1)
- # cider (3)
- # clj-kondo (19)
- # clojure (61)
- # clojure-brasil (13)
- # clojure-europe (25)
- # clojure-italy (1)
- # clojure-nl (2)
- # clojure-norway (27)
- # clojure-uk (23)
- # clojuredesign-podcast (6)
- # clojurescript (12)
- # conjure (2)
- # core-typed (3)
- # cursive (6)
- # datalevin (2)
- # datomic (13)
- # emacs (9)
- # events (19)
- # fulcro (6)
- # graphql (11)
- # gratitude (2)
- # helix (3)
- # honeysql (16)
- # jobs (1)
- # lsp (89)
- # malli (33)
- # meander (14)
- # off-topic (87)
- # pathom (4)
- # polylith (7)
- # portal (4)
- # practicalli (1)
- # rdf (6)
- # reagent (2)
- # releases (8)
- # remote-jobs (1)
- # shadow-cljs (59)
- # sql (8)
- # tools-deps (14)
- # xtdb (18)
I am on a quest to get consistent formatting (on command, not automatically) across different editors, again.
Most of the codebase is https://tonsky.me/blog/clojurefmt and I have set up Cursive to follow it. Except, that Cursive does not align to :require
as it needs to:
(ns user
(:require
[dev-server]))
☝️:skin-tone-2:this is what Cursive does.
"Non-symbol lists, vectors, maps and sets are aligned with the first element" so I want:
(ns user
(:require
[dev-server]))
(a filewatcher that runs cljfmt is not practical, until I can get it compiled under Graal, which is a rabbit hole I don't want to be in )
(https://calva.io/formatting/#indentation-rules is what we use for Calva)I don’t think so, sorry, that is: https://github.com/cursive-ide/cursive/issues/2665, which I haven’t looked at yet.
@U9E8C7QRJ i’m interested in your quest, if you have any intelliJ XML files and emacs configs that all work together, would be interested in seeing it published here.
@U0J3J79FE There’s some information here: https://cursive-ide.com/userguide/formatting.html#matching-indentation-to-emacs
@U9E8C7QRJ I’m sorry, I didn’t read your message carefully enough, and assumed it was the same case as that issue. It’s not, the option you want is “One space list indent”, discussed in the doc I linked.