Fork me on GitHub
#cursive
<
2020-10-14
>
reefersleep10:10:02

Is it possible to configure macro indentations in Cursive? I see the “Intentions > Clojure > Indentation” in Options, but I don’t see any way to affect it.

reefersleep10:10:59

E.g., I’m using (jdbc/with-db-connection [conn {:datasource d}] (my-long-expression)), and IntelliJ keeps wanting to format it like

(jdbc/with-db-connection [conn {:datasource d}]
                         (my-long-expression))
, when the sensible thing would be
(jdbc/with-db-connection [conn {:datasource d}]
  (my-long-expression))

reefersleep10:10:48

Even just cond-> wants to be aligned like the first example, when the styleguide says it should be aligned like the second.

reefersleep11:10:17

Thanks a bunch, I’ll have a lok at that!

imre11:10:38

I believe you have to select 1 to get it formatted the way you want