From ea4493ec242383c60646de9457a3412f50f9d225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 11 Aug 2018 13:02:32 -0500 Subject: fix C++-mode incorrect indentation --- lisp/init-ccc.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lisp/init-ccc.el (limited to 'lisp/init-ccc.el') 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) -- cgit v1.2.3