This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-29
Channels
- # aatree (1)
- # admin-announcements (7)
- # announcements (3)
- # beginners (125)
- # boot (164)
- # braid-chat (8)
- # cider (26)
- # cljsrn (37)
- # clojars (3)
- # clojure (162)
- # clojure-argentina (1)
- # clojure-art (2)
- # clojure-berlin (5)
- # clojure-czech (3)
- # clojure-ireland (1)
- # clojure-miami (1)
- # clojure-norway (9)
- # clojure-russia (47)
- # clojurebridge (1)
- # clojurescript (151)
- # community-development (1)
- # conf-proposals (80)
- # core-async (15)
- # core-matrix (1)
- # cursive (66)
- # datomic (26)
- # emacs (17)
- # events (10)
- # funcool (59)
- # hoplon (43)
- # incanter (2)
- # jobs (10)
- # ldnclj (8)
- # lein-figwheel (18)
- # luminus (1)
- # off-topic (19)
- # om (144)
- # onyx (167)
- # overtone (9)
- # parinfer (12)
- # pedestal (1)
- # proton (158)
- # re-frame (139)
- # reagent (48)
- # test-check (19)
- # testing (43)
trying to set up indent formatting for some functions/macros using define-clojure-indent
, and sometimes it just seems to not work
how can I debug this? I’m relatively clueless when it comes to emacs lisp, I have to admit 😞
@ddellacosta: what exactly are you trying to do? This is how I use define-clojure-indent
in my config:
(define-clojure-indent
(for-all 1)
(quick-check 1))
@cichli: yeah, exactly, that’s what I’ve got
but, for some functions it just doesn’t seem to get picked up
in particular, I’m trying to set it up for some route macros used by compojure-api
But works for others?
(define-clojure-indent
(GET* 1)
(POST* 1))
yep, exactly
like, I’ve got the go
macro from core.async in there, works just fine
just tested in the same namespace to confirm
If I eval that then it indents as follows:
(GET* :foo
:bar)
(POST* :foo
:bar)
which I think is right? Maybe check you’re on the latest version of clojure-mode
@cichli ah, good point—let me confirm that, thanks
(GET* "/hello" []
:query-params [name :- String]
(ok {:message (str "Hello, " name)}))
minimal: huh, that seems to have done it…!? Well, I won’t think too hard about it. Thanks!