diff options
| author | Luke Hoersten <[email protected]> | 2015-02-04 11:05:42 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2015-02-04 11:05:42 -0600 |
| commit | 781360f5507d5e2cfc29e391116ab9943c657d70 (patch) | |
| tree | 27d30097f9c88ed80b4fe2378656517db4f4695e /elisp/hoersten-c-style.el | |
| parent | 08c5c139bd0e6bbca01870bce66dd4eaddca747e (diff) | |
Big updates to haskell-mode stuff.
Diffstat (limited to 'elisp/hoersten-c-style.el')
| -rw-r--r-- | elisp/hoersten-c-style.el | 36 |
1 files changed, 36 insertions, 0 deletions
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 <[email protected]> + +;; 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) |
