mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 22:41:06 -08:00
Merge pull request from phillord/master
Better support for ELPA. GitHub-reference: https://github.com/jwiegley/use-package/issues/11
This commit is contained in:
commit
c4cf68f6e4
1 changed files with 10 additions and 5 deletions
|
|
@ -369,11 +369,16 @@ For full documentation. please see commentary.
|
||||||
(name-string (if (stringp name) name (symbol-name name)))
|
(name-string (if (stringp name) name (symbol-name name)))
|
||||||
(name-symbol (if (stringp name) (intern name) name)))
|
(name-symbol (if (stringp name) (intern name) name)))
|
||||||
|
|
||||||
|
;; force this immediately -- one off cost
|
||||||
(unless (plist-get args :disabled)
|
(unless (plist-get args :disabled)
|
||||||
|
(let* ((ensure (plist-get args :ensure))
|
||||||
|
(package-name
|
||||||
|
(or (and (eq ensure t)
|
||||||
|
name)
|
||||||
|
ensure)))
|
||||||
|
(when package-name
|
||||||
|
(use-package-ensure-elpa package-name)))
|
||||||
|
|
||||||
;; force this immediately -- one off cost!
|
|
||||||
(if (plist-get args :ensure)
|
|
||||||
(use-package-ensure-elpa name))
|
|
||||||
|
|
||||||
(if diminish-var
|
(if diminish-var
|
||||||
(setq config-body
|
(setq config-body
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue