diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-08-25 21:12:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-08-25 21:12:53 +0200 |
commit | 58b5700c87003749ec014baf84578b422eabcc6e (patch) | |
tree | b5d85f63bc4470415b12416c14a5bc1e1d0c1fd4 /contrib/uncrustify.el | |
parent | e854e3613b4b56e6f6ec96a538f3f148c71148c3 (diff) |
emacs integration
Diffstat (limited to 'contrib/uncrustify.el')
-rw-r--r-- | contrib/uncrustify.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/uncrustify.el b/contrib/uncrustify.el new file mode 100644 index 000000000..2ab6961f4 --- /dev/null +++ b/contrib/uncrustify.el @@ -0,0 +1,13 @@ +;; suggested integration of uncrustify for Emacs +;; This assumes that the 'uncrustify-mode.el' is +;; installed to '~/.emacs.d/load-path/'. Feel free +;; to put it elsewhere and adjust the load path below! + +;; adding the following to ~/.emacs will then run +;; uncrustify whenever saving a C buffer. + +(add-to-list 'load-path "~/.emacs.d/load-path/") +(require 'uncrustify-mode) +(add-hook 'c-mode-common-hook + '(lambda () + (uncrustify-mode 1))) |