summaryrefslogtreecommitdiff
path: root/lisp/cpp.el
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-25 08:24:12 -0400
committerMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-25 08:24:12 -0400
commite7f262d8b009915ad805b7a7435f962a7af2f46b (patch)
treec52f92d137c6c1753078982e49cb308d8e860611 /lisp/cpp.el
parent04c4b3e8c8395ef029bf60a91b8b2732d7b9d768 (diff)
Fix for CPP styling and adding a book note to org
Diffstat (limited to 'lisp/cpp.el')
-rw-r--r--lisp/cpp.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/cpp.el b/lisp/cpp.el
index 264c059..6dad38b 100644
--- a/lisp/cpp.el
+++ b/lisp/cpp.el
@@ -8,15 +8,14 @@
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))
(setq tab-width 4)
+ (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 '+)
)
(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: ")