clojure-indent
Minimal Atom package for indenting Clojure code
Ciebiada 2,452 1 0.10.0 MIT GitHub

clojure-indent

Minimal Atom package for indenting Clojure code.

I recommend using it alongside Parinfer

Auto-indenting selected lines

Select a section of code and hit cmd-i to reindent the entire block appropriately. This can be helpful for fixing large sections of code that were poorly formatted.

Current rules

  • Indent body of some special forms with 2 spaces (def, if, for...)
  • Align arguments of function / macro call
  • Align map and vector elements