From 0c7d2e113e60f0d5280c68cae2c7d7668546c27b Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Fri, 8 Sep 2023 13:49:49 -0400 Subject: C/C++ styles, iterating flymake errors --- lisp/cpp.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lisp/cpp.el') 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 -- cgit v1.2.1