Fork me on GitHub
#cursive
<
2022-03-25
>
danieroux07:03:36

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 simple_smile) (https://calva.io/formatting/#indentation-rules is what we use for Calva)

cfleming08:03:51

I don’t think so, sorry, that is: https://github.com/cursive-ide/cursive/issues/2665, which I haven’t looked at yet.

jasonjckn23:03:40

@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.

cfleming00:03:26

@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.

danieroux07:03:59

Is there any way to get what I want, that I am missing?