diff options
author | John Wiegley <johnw@newartisans.com> | 2012-06-17 16:44:49 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-06-17 16:44:49 -0500 |
commit | f6d65ce876d444e64553edcba7d3557d2b42ffa8 (patch) | |
tree | bba67251e439a4ac7c5b406856468ae65758ecad | |
parent | 0bde0b4c02c439a91e70f9d8bd1d0294dccc2c54 (diff) | |
download | emacs-f6d65ce876.tar.gz |
If :load-path is absolute, don't expand it
-rw-r--r-- | lisp/use-package/use-package.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index b1004b3dbe2..8c8fd27f28d 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -323,7 +323,9 @@ ,@(mapcar #'(lambda (path) `(add-to-list 'load-path - ,(expand-file-name path user-emacs-directory))) + ,(if (file-name-absolute-p path) + path + (expand-file-name path user-emacs-directory)))) (if (stringp pkg-load-path) (list pkg-load-path) pkg-load-path)) |