Fork me on GitHub
#spacemacs
<
2021-11-09
>
murtaza5213:11:40

I use clojure-align for formatting clojure forms. 1. I have a codebase in which I want to align all the functions, can I run clojure-align on all source files (instead of manually opening each one, selecting all the forms and running it) ? 2. Is there an external tool which will allow me the same formatting ? I tried cljfmt and cljstyle but they dont support all the formatting that clojure-align does ?

Drew Verlee19:11:40

My advice is to let your dream of aligning forms die. As only 20% of the clojure ecosystem gets behind the idea you will constantly be fighting up hill. E.g if you touch a map and all the forms will align ppl will be upset because now your git change is far to large. If you ignore whitespace, then sometimes you will accidentally commit unaligned rows. I enjoy aligned args, but its not worth the effort.

Drew Verlee19:11:58

I'm going to see how i can turn it on and off on a per project basis at least.