diff options
author | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-19 10:29:18 -0400 |
---|---|---|
committer | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-19 10:29:18 -0400 |
commit | d45137bb3f9b1d1d1a215a115e26c4d46568afd8 (patch) | |
tree | dcd3607dc82ffac638538e6af85d784b56f3ab04 /lisp/cpp.el | |
parent | 8a34cf5a197f7176210cc91b5f26999676ced574 (diff) | |
parent | 0c7d2e113e60f0d5280c68cae2c7d7668546c27b (diff) |
Merge branch 'master' of matthewkosarek.xyz:/srv/git/emacs_config
Diffstat (limited to 'lisp/cpp.el')
-rw-r--r-- | lisp/cpp.el | 9 |
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 |