Search code examples
emacsclojure

How do I intelligently re-indent Clojure in Emacs?


I'm new to Clojure and new to Emacs.

Is there an Emacs short-cut to intelligently re-indent the whole file? if not, is there at least a way to indent selected regions left or right?

I feel like I'm back in the stone age repeatedly pressing the arrows


Solution

  • C-x h selects the entire buffer. C-M-\ reindents the selected region.