mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 14:30:50 -08:00
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.
This commit is contained in:
parent
c3704ac36e
commit
d588d0b382
1 changed files with 1 additions and 1 deletions
|
|
@ -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_\\)+\\)?"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue