diff options
author | John Wiegley <johnw@newartisans.com> | 2016-01-20 18:55:54 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2016-01-20 18:55:54 -0500 |
commit | 3f48ff46484e116b00b420cb40208b4fb7b7ae22 (patch) | |
tree | 470edf77d89a7a57713377b38e2f992979a5d1a0 /lisp/use-package | |
parent | 38c170e17bf23fe0d5dc621c7a88c1093c2ee6ee (diff) | |
parent | f4a01f3e009112e8991df849b0cbea2f3317bc4b (diff) | |
download | emacs-3f48ff46484e116b00b420cb40208b4fb7b7ae22.tar.gz emacs-3f48ff46484e116b00b420cb40208b4fb7b7ae22.tar.bz2 emacs-3f48ff46484e116b00b420cb40208b4fb7b7ae22.zip |
Merge pull request from phillord/feature/always-pin
Add new option `-always-pin'
GitHub-reference: https://github.com/jwiegley/use-package/issues/310
Diffstat (limited to 'lisp/use-package')
-rw-r--r-- | lisp/use-package/use-package.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index a359e946378..a76b0473d7e 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -71,6 +71,11 @@ then the expanded macros do their job silently." :type 'sexp :group 'use-package) +(defcustom use-package-always-pin nil + "Treat every package as though it had specified `:pin SYM." + :type 'symbol + :group 'use-package) + (defcustom use-package-minimum-reported-time 0.1 "Minimal load time that will be reported. @@ -1075,6 +1080,11 @@ this file. Usage: (if use-package-always-ensure (use-package-plist-maybe-put args0 :ensure use-package-always-ensure) + args0))) + (args* (use-package-sort-keywords + (if use-package-always-pin + (use-package-plist-maybe-put + args* :pin use-package-always-pin) args0)))) ;; When byte-compiling, pre-load the package so all its symbols are in |