summaryrefslogtreecommitdiff
path: root/conf/uncrustify.el
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-09 17:30:49 +0000
committerng0 <ng0@n0.is>2019-10-09 17:30:49 +0000
commit55bd2280c8a69261f01cd06ae88e3e7ae32cf58b (patch)
tree139a13b17edc0268ba7018875a30ef98bbcd9159 /conf/uncrustify.el
parentf3fcc325beac420111498f428764ccad8109f599 (diff)
downloadbuild-common-55bd2280c8a69261f01cd06ae88e3e7ae32cf58b.tar.gz
build-common-55bd2280c8a69261f01cd06ae88e3e7ae32cf58b.tar.bz2
build-common-55bd2280c8a69261f01cd06ae88e3e7ae32cf58b.zip
check in code independent build system code.
Diffstat (limited to 'conf/uncrustify.el')
-rw-r--r--conf/uncrustify.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/conf/uncrustify.el b/conf/uncrustify.el
new file mode 100644
index 0000000..2ab6961
--- /dev/null
+++ b/conf/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)))