This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-05
Channels
- # announcements (7)
- # beginners (107)
- # boot (5)
- # calva (2)
- # cider (18)
- # clj-kondo (48)
- # cljs-dev (16)
- # cljsrn (2)
- # clojure (208)
- # clojure-berlin (1)
- # clojure-dev (25)
- # clojure-europe (14)
- # clojure-italy (10)
- # clojure-nl (10)
- # clojure-sg (1)
- # clojure-spec (52)
- # clojure-uk (13)
- # clojurescript (53)
- # cursive (7)
- # data-science (7)
- # datomic (4)
- # duct (1)
- # events (10)
- # fulcro (1)
- # graphql (5)
- # jobs (2)
- # kaocha (13)
- # leiningen (6)
- # off-topic (17)
- # pathom (4)
- # quil (6)
- # re-frame (52)
- # reagent (12)
- # reitit (3)
- # shadow-cljs (97)
- # spacemacs (10)
- # sql (39)
- # tools-deps (18)
- # uncomplicate (1)
- # xtdb (1)
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
(with-eval-after-load 'clojure-mode
(define-clojure-indent
(compojure.core/context 1)
(context 1))
I put that in dotspacemacs/user-config
in my .spacemacs
file
@martinklepsch this is how i do it, in a bit different way: https://github.com/lispyclouds/configs/blob/master/.spacemacs#L389-L398
works without the fully qualified ns
interesting, is the 1
the part that tells clojure-mode to indent the thing like a let
?
1
tells it to “indent 1 time”
Makes sense, I guess I was expecting it to be more complex due to the binding vec