aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.el1
-rw-r--r--lisp/init-ccc.el14
2 files changed, 15 insertions, 0 deletions
diff --git a/init.el b/init.el
index d7e6c91..41d9f25 100644
--- a/init.el
+++ b/init.el
@@ -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)