diff options
author | John Wiegley <johnw@newartisans.com> | 2015-03-16 12:19:14 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2015-03-16 12:19:14 -0500 |
commit | db69a3f81c0158cf9615dc3f19a6412d2b61446a (patch) | |
tree | 0b3d3a117f85419575cbb591d7b9b6910e55241a /lisp/use-package/use-package.el | |
parent | 9e35dd95d95ef3006cfd8d87d3e2099ec03ba021 (diff) | |
download | emacs-db69a3f81c0158cf9615dc3f19a6412d2b61446a.tar.gz emacs-db69a3f81c0158cf9615dc3f19a6412d2b61446a.tar.bz2 emacs-db69a3f81c0158cf9615dc3f19a6412d2b61446a.zip |
Add to the load-path before the :preface
Fixes https://github.com/jwiegley/use-package/issues/172
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r-- | lisp/use-package/use-package.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index e77ff96dc5e..224eb375028 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -441,12 +441,13 @@ possible." ;; Return the main body of the macro (use-package-cat-maybes - (list (plist-get args :preface)) - ;; Setup the load-path - (mapcar #'(lambda (path) `(add-to-list 'load-path ,path)) + (mapcar #'(lambda (path) + `(eval-and-compile (add-to-list 'load-path ,path))) (plist-get args :load-path)) + (list (plist-get args :preface)) + ;; Setup any required autoloads (if defer-loading (delete nil |