This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-25
Channels
- # admin-announcements (1)
- # aws (1)
- # beginners (52)
- # boot (78)
- # cider (22)
- # cljs-dev (1)
- # cljsrn (6)
- # clojars (23)
- # clojure (51)
- # clojure-austin (2)
- # clojure-china (2)
- # clojure-dusseldorf (2)
- # clojure-russia (101)
- # clojure-sg (2)
- # clojure-uk (2)
- # clojurescript (53)
- # core-logic (14)
- # cursive (1)
- # editors (4)
- # hoplon (324)
- # jaunt (1)
- # juxt (4)
- # leiningen (2)
- # mount (17)
- # off-topic (4)
- # om (15)
- # onyx (15)
- # parinfer (4)
- # proton (5)
- # re-frame (26)
- # reagent (24)
- # ring-swagger (1)
- # slack-help (5)
- # spacemacs (2)
- # untangled (10)
That's probably much more ergonomic. I'll give it a shot tomorrow. Hitting a pthreads bug in emacs that leads to segfaults and lockup running the nrelp client.
Is there a way to reformat a region/file in cider?
well there's cider-format-buffer
but I suppose that requires the cider middleware?
works with cider-nrepl, but it seems to reformat pretty lightly; doesn't break up long lines for example
@pesterhazy: I don't know an answer to your question, but I did not know about cider-reformat-*
or clojure-align
. These will be nice additions to the arsenal.
@codonnell: clj-format-edn-* seems to be a bit more aggressive in re-formatting newlines and commas, which is nice
wow and now I discovered rewrite-clj!
slightly tangential but may be interesting: https://github.com/Malabarba/aggressive-indent-mode
have not used this yet but this is quite awesome too: https://github.com/clojure-emacs/cider#specifying-indentation
yes, aggressive-indent-mode is a must-have
The reason that the first thing I did with Jaunt was a huge reformat is I wanted to be able to wander around with aggressive-indent-mode on and not cause diffs friggin everywhere.
There is also pressing tab
with a block selected (i.e., indent-for-tab-command
) for selectively re-indenting.
@malabarba: omg, that's perfect!
@malabarba: I can delete the GUI thing now