Fork me on GitHub
#editors
<
2018-06-17
>
bozhidar06:06:12

That’s a fair point, I’m just saying it’s not really a rocket science to fix it, but it’s a lot of work for a relatively small gain, and I can’t be fixing all the problems in every project. I’m really disappointed that so few people care about the tooling and the same 5 people seem to be involved across the board with everything. That’s a strange aspect of the Clojure community, compared to the Ruby one, where I’m also heavily involved. Maybe it’s a matter of size, maybe there’s something deeper here (e.g. people waiting on Cognitect to do everything for them).

pez10:06:24

Anyone know of a (preferably Clojure) library that can help with aligning stuff like bindings inside binding vectors? I have been told that Cursive does this very well and letting the user choose wether to align or enforce one space between the pairs.

dpsutton12:06:56

cursive does this very well as verified by my coworkers. clojure-mode (a dependency of CIDER) has a command clojure-align which is bound at C-c spc for me which does this nicely. If you are looking for a library, I believe the standard is to use https://github.com/weavejester/cljfmt

pez14:06:04

I am using cljfmt 😃 Does it do aligns?

bozhidar17:06:58

@dpsutton Btw, you can also configure clojure-mode to align stuff by default. 🙂 No need to use the command.

dpsutton18:06:04

I have yet to really dig around in clojure-mode. Thanks

bozhidar18:06:28

(setq clojure-align-forms-automatically t)

pez18:06:15

Still, is there a way to get cljfmt to align stuff?

bozhidar18:06:32

I don’t think so. Just went over the config and I don’t see anything about alignment there.

pez18:06:59

Thanks for checking that. I thought it was me being totally stupid. 😃

pez18:06:02

When cider aligns forms, it is elisp code doing it?

bozhidar21:06:18

Yes. It’s not even CIDER, it’s clojure-mode itself.

bozhidar21:06:32

(`clojure-mode` doesn’t need a running REPL to work)