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:
Jonas Bernoulli 2013-12-10 00:33:02 +01:00
parent c3704ac36e
commit d588d0b382

View file

@ -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_\\)+\\)?"