diff options
author | Radon Rosborough <radon.neon@gmail.com> | 2019-07-15 22:11:13 -0700 |
---|---|---|
committer | Radon Rosborough <radon.neon@gmail.com> | 2019-07-15 22:11:13 -0700 |
commit | 4c8d5f0b21dbbf888aac988c2370c4626458f713 (patch) | |
tree | 3bf86d6b66708b49bfff61845d99065968a8629b /lisp/use-package/use-package-core.el | |
parent | 27fd32c47bf23a996c4542aa9e7b14f451b94f17 (diff) | |
download | emacs-4c8d5f0b21dbbf888aac988c2370c4626458f713.tar.gz emacs-4c8d5f0b21dbbf888aac988c2370c4626458f713.tar.bz2 emacs-4c8d5f0b21dbbf888aac988c2370c4626458f713.zip |
Switch from `require' to `load' + `featurep'
Diffstat (limited to 'lisp/use-package/use-package-core.el')
-rw-r--r-- | lisp/use-package/use-package-core.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index b80da77fd81..db5e20f7ddf 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -651,7 +651,8 @@ extending any keys already present." ,(when (eq use-package-verbose 'debug) `(message ,(format "Compiling package %s" name-string))) ,(unless (plist-get args :no-require) - `(require ',name-symbol))))))))) + `(unless (featurep ',name-symbol) + (load ,name-string nil t)))))))))) ;; Certain keywords imply :defer, if :demand was not specified. (when (and (not (plist-member args :demand)) |