Fork me on GitHub
#emacs
<
2019-08-24
>
Lone Ranger11:08:38

grr... learning emacs, I'm spoiled by Cursive cleaning up after me in my code (lining up keys/values in hashmaps, etc... ) how does one do that in emacs land?

vemv13:08:14

(setq clojure-align-forms-automatically t)

chrisblom10:08:55

also try aggresive-indent-mode

bananadance 4
chrisblom10:08:02

it reformats while you edit

Lone Ranger16:08:05

this works great, thank you!

Lone Ranger11:08:37

I followed this and it's indenting properly but not formatting properly

bozhidar14:08:37

Well, that’s some ancient discussion.

bozhidar14:08:51

Generally it’s best to refer to the official docs for CIDER and clojure-mode.

bozhidar14:08:47

There’s also integration with cljfmt if that’s what you need, although most of the time indent-buffer is all you need.

theeternalpulse23:08:34

what's a good library to use to do custom refactorings. Say I wanted to create shell tests based on functions I create, or move inline deftests to the appropriate file/namespace?

4
1️⃣ 4
Lone Ranger11:08:51

clj-refactor is pretty powerful if you're doing Clojure, but if you're doing a lot of cljs like me it's not as helpful 😕