diff options
author | Jesús <heckyel@hyperbola.info> | 2018-08-11 13:02:32 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2018-08-11 13:02:32 -0500 |
commit | ea4493ec242383c60646de9457a3412f50f9d225 (patch) | |
tree | 94f0c27ca3c7095437e5476b1ca5560a20e18bbb /lisp | |
parent | 7423a2b2db434ad3795c6ef3d298053c0c4287bf (diff) | |
download | emacs-personal-ea4493ec242383c60646de9457a3412f50f9d225.tar.lz emacs-personal-ea4493ec242383c60646de9457a3412f50f9d225.tar.xz emacs-personal-ea4493ec242383c60646de9457a3412f50f9d225.zip |
fix C++-mode incorrect indentation
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-ccc.el | 14 |
1 files changed, 14 insertions, 0 deletions
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) |