diff options
| author | benj <benj@rse8.com> | 2018-12-21 16:45:46 -0800 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2018-12-22 18:44:41 -0800 |
| commit | 261b42ddf1b4b965092ef7f2e106bf8f8cbb93da (patch) | |
| tree | 0474dd5abca3cd5e4135a62b3550d911e76cc40b /settings/setup-c++-mode.el | |
| parent | 9def383a41abf5f4f8a63505482cbe2dfdcc10ec (diff) | |
| download | emacs-261b42ddf1b4b965092ef7f2e106bf8f8cbb93da.tar emacs-261b42ddf1b4b965092ef7f2e106bf8f8cbb93da.tar.gz emacs-261b42ddf1b4b965092ef7f2e106bf8f8cbb93da.tar.bz2 emacs-261b42ddf1b4b965092ef7f2e106bf8f8cbb93da.tar.lz emacs-261b42ddf1b4b965092ef7f2e106bf8f8cbb93da.tar.xz emacs-261b42ddf1b4b965092ef7f2e106bf8f8cbb93da.tar.zst emacs-261b42ddf1b4b965092ef7f2e106bf8f8cbb93da.zip | |
added flycheck-clangcheck support; notes for larger c++ builds
Diffstat (limited to '')
| -rw-r--r-- | settings/setup-c++-mode.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/setup-c++-mode.el b/settings/setup-c++-mode.el index 820c057..28d8698 100644 --- a/settings/setup-c++-mode.el +++ b/settings/setup-c++-mode.el @@ -5,7 +5,12 @@ '(;; add some keywords ("\\<\\(nullptr\\)\\>" . font-lock-keyword-face))))) -(add-hook 'c++-mode-hook 'rtags-start-process-unless-running) +(defun arg-list-indent () + "Indent arglist properly when overflowing." + (c-set-offset 'arglist-intro '+)) + +(add-hook 'c++-mode-hook 'arg-list-indent) +;;(add-hook 'c++-mode-hook 'rtags-start-process-unless-running) (setq c-basic-offset 2) (setq c-default-style "gnu") |
