Fork me on GitHub
#cider
<
2021-05-28
>
jumar16:05:09

[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?

futuro16:05:47

What function does enter run?

futuro16:05:53

C-h k ENTER

bozhidar18:05:19

cider-repl-return 🙂

futuro18:05:53

Thanks bozhidar! And thank you for cider!

cider 1
bozhidar18:05:45

@jumar The format functions run cljfmt, they have nothing to do with Emacs's own indentation engine.

jumar18:05:54

What does that mean? That the indent style I specify is not expected to have an effect on that?