summaryrefslogtreecommitdiff
path: root/settings/setup-c++-mode.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--settings/setup-c++-mode.el7
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")