]> git.eshelyaron.com Git - emacs.git/commitdiff
Add use-package-always-defer-install
authorRadon Rosborough <radon.neon@gmail.com>
Sun, 26 Mar 2017 21:40:17 +0000 (14:40 -0700)
committerRadon Rosborough <radon.neon@gmail.com>
Sun, 26 Mar 2017 21:40:17 +0000 (14:40 -0700)
See https://github.com/jwiegley/use-package/pull/433#issuecomment-289317875

lisp/use-package/use-package.el

index 2943dafe6b0f664811ad8f3df2ed57290ba9fb3c..56e1e342d0a4e31ae20208b5f939dfb0802cc401 100644 (file)
@@ -85,13 +85,18 @@ The check is performed by looking for the module using `locate-library'."
   :type 'boolean
   :group 'use-package)
 
+(defcustom use-package-always-defer-install nil
+  "If non-nil, assume `:defer-install t` unless `:defer-install nil` 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
   :group 'use-package)
 
 (defcustom use-package-always-pin nil
-  "Treat every package as though it had specified `:pin SYM."
+  "Treat every package as though it had specified `:pin SYM`."
   :type 'symbol
   :group 'use-package)
 
@@ -238,6 +243,9 @@ when the packages are actually requested."
 (defcustom use-package-defaults
   '((:config '(t) t)
     (:ensure use-package-always-ensure use-package-always-ensure)
+    (:defer-install
+     use-package-always-defer-install
+     use-package-always-defer-install)
     (:pin use-package-always-pin use-package-always-pin))
   "Alist of default values for `use-package' keywords.
 Each entry in the alist is a list of three elements. The first