Fork me on GitHub
#cider
<
2016-03-25
>
bozhidar05:03:08

C-c C-c is also bound to the same command

bozhidar05:03:14

as in SLIME

bozhidar05:03:23

usually I prefer this keybinding

arrdem08:03:26

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.

malabarba14:03:18

@fommil cider-browse-ns?

pesterhazy17:03:22

Is there a way to reformat a region/file in cider?

pesterhazy17:03:50

well there's cider-format-buffer

pesterhazy17:03:57

but I suppose that requires the cider middleware?

pesterhazy18:03:25

works with cider-nrepl, but it seems to reformat pretty lightly; doesn't break up long lines for example

codonnell18:03:36

@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.

pesterhazy18:03:16

@codonnell: clj-format-edn-* seems to be a bit more aggressive in re-formatting newlines and commas, which is nice

pesterhazy18:03:39

wow and now I discovered rewrite-clj!

benedek18:03:44

slightly tangential but may be interesting: https://github.com/Malabarba/aggressive-indent-mode

arrdem18:03:41

I adore aggressive-indent-mode

arrdem18:03:00

that with the new clojure-mode bindings alignment 😄

benedek18:03:07

have not used this yet but this is quite awesome too: https://github.com/clojure-emacs/cider#specifying-indentation

pesterhazy18:03:13

yes, aggressive-indent-mode is a must-have

arrdem18:03:54

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.

harold19:03:55

There is also pressing tab with a block selected (i.e., indent-for-tab-command) for selectively re-indenting.

fommil23:03:33

@malabarba: omg, that's perfect!

fommil23:03:45

@malabarba: I can delete the GUI thing now simple_smile