Emacs-uncrustify emacs extension had some small but cool contributions by Gordon Read (thanks, man!).
It has now a customization group with variables holding:
- path to uncrustify’s configuration file
- arguments to be passed to uncrustify
- boolean flaging if uncrustify should be applyed on a buffer on save
We also have two different functions, now. The uncrustify
one does the same — uncrustifies a region. There’s also uncrustify-buffer
, now, as a shortcut for applying it to the whole buffer.
Finally, a c-mode-common-hook
was added, which will apply uncrustify on the buffer if and only if that third variable is set.