mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-06 04:09:37 +00:00
Add variable `use-package-always-defer'
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/202
This commit is contained in:
parent
eeba14ef07
commit
6da4e0ce9d
1 changed files with 7 additions and 1 deletions
|
@ -66,6 +66,11 @@ then the expanded macros do their job silently."
|
||||||
:type 'boolean
|
:type 'boolean
|
||||||
:group 'use-package)
|
:group 'use-package)
|
||||||
|
|
||||||
|
(defcustom use-package-always-defer nil
|
||||||
|
"If non-nil, assume `:defer t` unless `:demand t` is given."
|
||||||
|
:type 'sexp
|
||||||
|
:group 'use-package)
|
||||||
|
|
||||||
(defcustom use-package-always-ensure nil
|
(defcustom use-package-always-ensure nil
|
||||||
"Treat every package as though it had specified `:ensure SEXP`."
|
"Treat every package as though it had specified `:ensure SEXP`."
|
||||||
:type 'sexp
|
:type 'sexp
|
||||||
|
@ -1126,7 +1131,8 @@ this file. Usage:
|
||||||
|
|
||||||
(let ((body
|
(let ((body
|
||||||
(macroexp-progn
|
(macroexp-progn
|
||||||
(use-package-process-keywords name args*))))
|
(use-package-process-keywords name args*
|
||||||
|
(and use-package-always-defer '(:deferred t))))))
|
||||||
(if use-package-debug
|
(if use-package-debug
|
||||||
(display-buffer
|
(display-buffer
|
||||||
(save-current-buffer
|
(save-current-buffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue