summaryrefslogtreecommitdiff
path: root/lisp/cpp.el
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-08 13:49:49 -0400
committerMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-08 13:49:49 -0400
commit0c7d2e113e60f0d5280c68cae2c7d7668546c27b (patch)
tree4de9527f84e60ec5df236eb287a07dee42aa4e2d /lisp/cpp.el
parent4cde52d01f0f6f64b4068a5f3ed26e2d669d1c39 (diff)
C/C++ styles, iterating flymake errors
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