changeset 172:8674d2cd2085

d-mode: use a different function arg indentation style
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 06 Dec 2017 11:54:44 -0500
parents 254cce5fcdd5
children 66cbafedef6c
files dotemacs.el
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dotemacs.el
+++ b/dotemacs.el
@@ -109,6 +109,25 @@
 
 )
 
+;; I've grown used to this indentation style.
+;; I want to see
+;;
+;; lolomgwtf(
+;;    brb,
+;;    bbq,
+;; )
+;;
+;; and not
+;
+;; lolomgwtf(
+;;           brb,
+;;           bbq,
+;;          )
+(defun modest-arglist-indentation ()
+  (c-set-offset 'arglist-close 0)
+  (c-set-offset 'arglist-intro '+))
+(add-hook 'd-mode-hook 'modest-arglist-indentation)
+
 ;;; H/T Stefan Monnier
 (defun unfill-paragraph (&optional region)
   "Takes a multi-line paragraph and makes it into a single line of text."