From d588d0b382ee3f084615f0c3fe7d58c772ebc06f Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Tue, 10 Dec 2013 00:33:02 +0100 Subject: [PATCH] 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. --- lisp/use-package/use-package.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_\\)+\\)?" -- 2.39.2