# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1512579284 18000 # Node ID 8674d2cd20857fe72dda38fcdb2e9cd8cd174570 # Parent 254cce5fcdd58be0410ae80d002d59b70175053e d-mode: use a different function arg indentation style diff --git a/dotemacs.el b/dotemacs.el --- 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."