This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-09
Channels
- # announcements (3)
- # asami (1)
- # babashka (19)
- # beginners (84)
- # calva (3)
- # cider (5)
- # clj-commons (22)
- # clj-kondo (31)
- # cljdoc (4)
- # cljs-dev (5)
- # clojure (65)
- # clojure-australia (1)
- # clojure-europe (44)
- # clojure-nl (2)
- # clojure-uk (2)
- # clojurescript (18)
- # code-reviews (12)
- # conjure (2)
- # core-async (12)
- # data-science (1)
- # datomic (47)
- # deps-new (1)
- # emacs (2)
- # events (4)
- # fulcro (35)
- # integrant (1)
- # jobs (5)
- # jobs-discuss (10)
- # london-clojurians (1)
- # lsp (13)
- # music (1)
- # nextjournal (1)
- # off-topic (11)
- # parinfer (3)
- # pathom (6)
- # polylith (11)
- # portal (41)
- # re-frame (4)
- # reagent (13)
- # reitit (8)
- # remote-jobs (3)
- # sci (18)
- # shadow-cljs (34)
- # spacemacs (3)
- # tools-build (12)
- # tools-deps (6)
- # vim (2)
- # xtdb (7)
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 ?
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.
I'm going to see how i can turn it on and off on a per project basis at least.