diff options
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | lisp/init-ccc.el | 14 |
2 files changed, 15 insertions, 0 deletions
@@ -37,6 +37,7 @@ ;; Tools (require 'init-flycheck) ;; Languages +(require 'init-ccc) (require 'init-markdown) (require 'init-python) (require 'init-pkgbuild) diff --git a/lisp/init-ccc.el b/lisp/init-ccc.el new file mode 100644 index 0000000..bc3573c --- /dev/null +++ b/lisp/init-ccc.el @@ -0,0 +1,14 @@ +;;---------------------------------------------------------------------------- +;; c++ Mode +;;---------------------------------------------------------------------------- +(add-hook 'c++-mode-hook + (lambda () + (setq indent-tabs-mode t) + (setq c-basic-offset 4) + (setq tab-width 4))) + +;; This is my default indent. +;; After moving the cursor to line 2 I see that the relevant symbol is comment-intro. +(c-set-offset 'comment-intro 6) + +(provide 'init-ccc) |