Emacs-uncrustify updates

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.

Enjoy.

Deixe uma resposta

Preencha os seus dados abaixo ou clique em um ícone para log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Sair / Alterar )

Imagem do Twitter

You are commenting using your Twitter account. Sair / Alterar )

Foto do Facebook

You are commenting using your Facebook account. Sair / Alterar )

Connecting to %s