From: Jonas Bernoulli Date: Mon, 9 Dec 2013 23:33:02 +0000 (+0100) Subject: use-package: use defun as lisp-indent-function X-Git-Tag: emacs-29.0.90~1306^2~15^2~428^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d588d0b382;p=emacs.git use-package: use defun as lisp-indent-function When `use-package' is called with only one keyword it is useful to write: (use-package foo :init (progn ... long lines ...)) instead of (use-package foo :init (progn ... *too* long lines ...)) or (use-package foo :init (progn ... long lines ...)) Even when there are multiple keywords or when one never wants to format the calls to `use-package' as in the first example the use of `defun' does not really pose a problem. --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index f4d5e7b6f38..2d75c549b21 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -574,7 +574,7 @@ For full documentation. please see commentary. ,config-body t)))))))) -(put 'use-package 'lisp-indent-function 1) +(put 'use-package 'lisp-indent-function 'defun) (defconst use-package-font-lock-keywords '(("(\\(use-package\\)\\_>[ \t']*\\(\\(?:\\sw\\|\\s_\\)+\\)?"