Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 582 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 582 Bytes

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