editors

Discussion about all editors used for Clojure/ClojureScript
bozhidar 2018-06-17T06:19:12.000083Z

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

pez 2018-06-17T10:40:24.000053Z

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.

dpsutton 2018-06-17T12:58:56.000083Z

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

pez 2018-06-17T14:01:04.000052Z

I am using cljfmt 😃 Does it do aligns?

bozhidar 2018-06-17T17:36:58.000082Z

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

dpsutton 2018-06-17T18:01:04.000113Z

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

bozhidar 2018-06-17T18:03:28.000051Z

(setq clojure-align-forms-automatically t)

pez 2018-06-17T18:24:15.000012Z

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

bozhidar 2018-06-17T18:27:32.000051Z

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

pez 2018-06-17T18:28:59.000043Z

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

pez 2018-06-17T18:30:02.000185Z

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

bozhidar 2018-06-17T21:10:18.000016Z

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

bozhidar 2018-06-17T21:10:32.000052Z

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