diff options
Diffstat (limited to 'modules/init-ccc.el')
-rw-r--r-- | modules/init-ccc.el | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/init-ccc.el b/modules/init-ccc.el new file mode 100644 index 0000000..6733f3e --- /dev/null +++ b/modules/init-ccc.el @@ -0,0 +1,25 @@ +;;; init-ccc.el --- .Emacs Configuration -*- lexical-binding: t -*- +;;; Commentary: +;; + +;;; Code: + +;;---------------------------------------------------------------------------- +;; 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) + +;; Local Variables: +;; byte-compile-warnings: (not free-vars) +;; End: +;;; init-ccc.el ends here |