comparison dotemacs.el @ 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
comparison
equal deleted inserted replaced
171:254cce5fcdd5 172:8674d2cd2085
106 ;; engine to use, but Django templates is all I care about for now. 106 ;; engine to use, but Django templates is all I care about for now.
107 (setq web-mode-engines-alist 107 (setq web-mode-engines-alist
108 '(("django" . "\\.html\\'")) 108 '(("django" . "\\.html\\'"))
109 109
110 ) 110 )
111
112 ;; I've grown used to this indentation style.
113 ;; I want to see
114 ;;
115 ;; lolomgwtf(
116 ;; brb,
117 ;; bbq,
118 ;; )
119 ;;
120 ;; and not
121 ;
122 ;; lolomgwtf(
123 ;; brb,
124 ;; bbq,
125 ;; )
126 (defun modest-arglist-indentation ()
127 (c-set-offset 'arglist-close 0)
128 (c-set-offset 'arglist-intro '+))
129 (add-hook 'd-mode-hook 'modest-arglist-indentation)
111 130
112 ;;; H/T Stefan Monnier 131 ;;; H/T Stefan Monnier
113 (defun unfill-paragraph (&optional region) 132 (defun unfill-paragraph (&optional region)
114 "Takes a multi-line paragraph and makes it into a single line of text." 133 "Takes a multi-line paragraph and makes it into a single line of text."
115 (interactive (progn (barf-if-buffer-read-only) '(t))) 134 (interactive (progn (barf-if-buffer-read-only) '(t)))