aboutsummaryrefslogtreecommitdiffstats
path: root/modules/init-ccc.el
blob: 3f823731f3602f2b9a01e6e5a5160ab1a9a9dbcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
;;; 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)))

;;----------------------------------------------------------------------------
;; 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