diff options
| author | Naoya Yamashita | 2019-04-14 19:30:42 +0900 |
|---|---|---|
| committer | Naoya Yamashita | 2019-04-14 19:44:54 +0900 |
| commit | 8fe0ac2983d7f608c554c46fd4231ddbbc8b5526 (patch) | |
| tree | 8b6da5613eec49496ea15faee9439058878f0f77 | |
| parent | 3e36cbfb6dcd9e9acccc64947321c3cc82f17731 (diff) | |
| download | emacs-8fe0ac2983d7f608c554c46fd4231ddbbc8b5526.tar.gz emacs-8fe0ac2983d7f608c554c46fd4231ddbbc8b5526.zip | |
* use-package-core.el (use-package): fix declare style
use-package specified lisp-indent-function to indent like defun.
Currently, use-package main macro specify indent as (declare (indent 1)),
then change indent mode like defun.
(declare (indent defun)) is same effect.
And it is useful when redefining use-package.
| -rw-r--r-- | lisp/use-package/use-package-core.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index fec50fd4bb8..99ddc56eb45 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el | |||
| @@ -1562,7 +1562,7 @@ this file. Usage: | |||
| 1562 | :custom-face Call `customize-set-faces' with each face definition. | 1562 | :custom-face Call `customize-set-faces' with each face definition. |
| 1563 | :ensure Loads the package using package.el if necessary. | 1563 | :ensure Loads the package using package.el if necessary. |
| 1564 | :pin Pin the package to an archive." | 1564 | :pin Pin the package to an archive." |
| 1565 | (declare (indent 1)) | 1565 | (declare (indent defun)) |
| 1566 | (unless (memq :disabled args) | 1566 | (unless (memq :disabled args) |
| 1567 | (macroexp-progn | 1567 | (macroexp-progn |
| 1568 | (use-package-concat | 1568 | (use-package-concat |
| @@ -1581,8 +1581,6 @@ this file. Usage: | |||
| 1581 | (when use-package-compute-statistics | 1581 | (when use-package-compute-statistics |
| 1582 | `((use-package-statistics-gather :use-package ',name t))))))) | 1582 | `((use-package-statistics-gather :use-package ',name t))))))) |
| 1583 | 1583 | ||
| 1584 | (put 'use-package 'lisp-indent-function 'defun) | ||
| 1585 | |||
| 1586 | (provide 'use-package-core) | 1584 | (provide 'use-package-core) |
| 1587 | 1585 | ||
| 1588 | ;; Local Variables: | 1586 | ;; Local Variables: |