[might be spacemacs specific]
I'm puzzled by the behavior of cider-format-*
functions.
Here using try+
example - when I define-clojure-indent
with (try+ 1)
then formatting functions, as expected will use 2-space indentation:
(try+
(let [a ...
But when I'm typing and enter a new line it gets 4 spaces:
(try+
(let [a
What could be reason for that? Is somebody else having the same problem?What function does enter run?
C-h k ENTER
@jumar The format functions run cljfmt
, they have nothing to do with Emacs's own indentation engine.
What does that mean? That the indent style I specify is not expected to have an effect on that?
Yes.
See https://docs.cider.mx/cider/1.1/usage/misc_features.html#formatting-code-with-cljfmt
cider-repl-return
🙂
Thanks bozhidar! And thank you for cider!