This is equivalent to adding `:demand t` to all `use-package` declarations,
and has the same semantics as doing so (meaning it can be overridden locally
using `:defer t` in a declaration).
Fixes https://github.com/jwiegley/use-package/issues/423
:type 'boolean
:group 'use-package)
+(defcustom use-package-always-demand nil
+ "If non-nil, assume `:demand t` unless `:defer t` is given."
+ :type 'boolean
+ :group 'use-package)
+
(defcustom use-package-always-ensure nil
"Treat every package as though it had specified `:ensure SEXP`."
:type 'sexp
(let ((body
(macroexp-progn
- (use-package-process-keywords name args*
+ (use-package-process-keywords name
+ (if use-package-always-demand
+ (append args* '(:demand t))
+ args*)
(and use-package-always-defer (list :deferred t))))))
(if use-package-debug
(display-buffer