fix C++-mode incorrect indentation
This commit is contained in:
parent
7423a2b2db
commit
ea4493ec24
1
init.el
1
init.el
@ -37,6 +37,7 @@
|
|||||||
;; Tools
|
;; Tools
|
||||||
(require 'init-flycheck)
|
(require 'init-flycheck)
|
||||||
;; Languages
|
;; Languages
|
||||||
|
(require 'init-ccc)
|
||||||
(require 'init-markdown)
|
(require 'init-markdown)
|
||||||
(require 'init-python)
|
(require 'init-python)
|
||||||
(require 'init-pkgbuild)
|
(require 'init-pkgbuild)
|
||||||
|
14
lisp/init-ccc.el
Normal file
14
lisp/init-ccc.el
Normal file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user