summaryrefslogtreecommitdiff
path: root/contrib/uncrustify.el
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:49:28 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:49:28 +0200
commit54bde12c0295e008e050a8418c4702b8f3ea4a55 (patch)
tree3d5e4a60f4fe749e3348e228617c2105224b9b15 /contrib/uncrustify.el
parent99a8156209ae62a8b5d73fcf9fef25c03b89a6ca (diff)
downloadmerchant-54bde12c0295e008e050a8418c4702b8f3ea4a55.tar.gz
merchant-54bde12c0295e008e050a8418c4702b8f3ea4a55.tar.bz2
merchant-54bde12c0295e008e050a8418c4702b8f3ea4a55.zip
add uncrustify hook
Diffstat (limited to 'contrib/uncrustify.el')
-rw-r--r--contrib/uncrustify.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/uncrustify.el b/contrib/uncrustify.el
new file mode 100644
index 00000000..2ab6961f
--- /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)))