Fork me on GitHub
#spacemacs
<
2019-09-05
>
martinklepsch13:09:12

How do I tell clojure-mode to indent things like p/alet like let? I found some examples in the README but am not sure about the specific incantation I’m looking for

bostonaholic15:09:36

@martinklepsch

(with-eval-after-load 'clojure-mode
    (define-clojure-indent
      (compojure.core/context 1)
      (context 1))

bostonaholic15:09:57

I put that in dotspacemacs/user-config in my .spacemacs file

lispyclouds15:09:28

works without the fully qualified ns

martinklepsch15:09:08

interesting, is the 1 the part that tells clojure-mode to indent the thing like a let?

martinklepsch15:09:30

nice, that did it. Thanks! @rahul080327 @bostonaholic! 🙌

spacemacs 4
bostonaholic15:09:48

1 tells it to “indent 1 time”

martinklepsch16:09:13

Makes sense, I guess I was expecting it to be more complex due to the binding vec