Fork me on GitHub
#spacemacs
<
2018-02-13
>
lemons12:02:38

Heya. Is there anything special I need to do to get spacemacs to respect macro indentation metadata? According to docs https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/clojure#indentation this should be working out of the box if I have cider-dynamic-indentation enabled, which I do

ag18:02:29

@lemons I'm not sure what exactly you mean, maybe put-clojure-indent?

ag18:02:54

so for example I have something like this:

(dolist (form '(re-frame.core/reg-sub
                  re-frame.core/reg-fx
                  re-frame.core/reg-sub
                  re-frame.core/reg-event-fx
                  re-frame.core/reg-event-db))
    (put-clojure-indent form 1))
so now if I write:
(re-frame.core/reg-fx ::foo
  |
  )
it places the cursor there, and not indented all the way on the right