fix C++-mode incorrect indentation
This commit is contained in:
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)
|
||||
Reference in New Issue
Block a user