summaryrefslogtreecommitdiff
path: root/lisp/cpp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cpp.el')
-rw-r--r--lisp/cpp.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/cpp.el b/lisp/cpp.el
index d7a58e7..264c059 100644
--- a/lisp/cpp.el
+++ b/lisp/cpp.el
@@ -5,22 +5,23 @@
(setq c++-tab-always-indent 0)
(setq c-basic-offset 4) ;; Default is 2
(setq c-indent-level 4) ;; Default is 2
- (c-set-offset 'brace-list-open 0)
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))
(setq tab-width 4)
- ;; (electric-indent-mode 0)
)
(add-hook 'c-mode-common-hook 'setup-c)
+(c-set-offset 'brace-list-open 0)
+(c-set-offset 'substatement-open 0)
+(c-set-offset 'arglist-intro '+)
+(c-set-offset 'arglist-cont-non-empty '+)
+
(defun create-cpp-class()
"Create a cpp class."
(interactive "Enter the name of the class: ")
)
-(defun me:c-mode-config ()
- (c-set-style "ellemtel"))
(provide 'cpp)
;;; cpp.el ends here