From 781360f5507d5e2cfc29e391116ab9943c657d70 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Wed, 4 Feb 2015 11:05:42 -0600 Subject: Big updates to haskell-mode stuff. --- elisp/hoersten-c-style.el | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 elisp/hoersten-c-style.el (limited to 'elisp/hoersten-c-style.el') diff --git a/elisp/hoersten-c-style.el b/elisp/hoersten-c-style.el new file mode 100644 index 0000000..043a499 --- /dev/null +++ b/elisp/hoersten-c-style.el @@ -0,0 +1,36 @@ +;; ~/.emacs.d/hoersten-c-style.el +;; Luke Hoersten + +;; hoersten c++-style +(c-add-style + "hoersten" + '(;; indentation + (indent-tabs-mode . t) + (tab-width . 3) + (c-basic-offset . 3) + + ;; brace cleanups + (c-cleanup-list + brace-else-brace + brace-elseif-brace + brace-catch-brace + empty-defun-braces + defun-close-semi + list-close-comma + scope-operator) + + ;; syntactic symbols + (c-offsets-alist + (substatement-open . 0) + (inline-open . 0) + (case-label . +) + (innamespace . 0) + (arglist-cont-nonempty . +) + (cpp-macro . -)))) + +;; c-like language settings (c, c++, java, etc.) +;;(require 'doxymacs) +(setq-default c-default-style "hoersten") ; load c-style + +(message "Loading hoersten-c-style...done") +(provide 'hoersten-c-style) -- cgit v1.2.3