Fix compilation of imalison:use-package invocations
imalison:use-package previously referred to variables that were only available at runtime.
This commit is contained in:
parent
3eece592fd
commit
fd91b0c919
@ -674,7 +674,9 @@ This interactive functions allows the user the select a function to invoke using
|
|||||||
|
|
||||||
(defmacro imalison:use-package (package &rest forms)
|
(defmacro imalison:use-package (package &rest forms)
|
||||||
(let ((target-directory
|
(let ((target-directory
|
||||||
(concat (file-name-as-directory imalison:projects-directory)
|
(concat (file-name-as-directory (if (boundp 'imalison:projects-directory)
|
||||||
|
imalison:projects-directory
|
||||||
|
"~/Projects"))
|
||||||
(symbol-name package))))
|
(symbol-name package))))
|
||||||
`(imalison:use-package* ,package ,target-directory ,@forms)))
|
`(imalison:use-package* ,package ,target-directory ,@forms)))
|
||||||
|
|
||||||
@ -2549,8 +2551,10 @@ Not really sure what this is
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** mu4e
|
*** mu4e
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(eval-when-compile
|
||||||
(require 's)
|
(require 's)
|
||||||
(defvar mu4e-elisp-directory (s-trim (shell-command-to-string "mu4e_directory")))
|
(defvar mu4e-elisp-directory
|
||||||
|
(s-trim (shell-command-to-string "mu4e_directory"))))
|
||||||
(use-package mu4e
|
(use-package mu4e
|
||||||
:load-path mu4e-elisp-directory
|
:load-path mu4e-elisp-directory
|
||||||
:ensure nil
|
:ensure nil
|
||||||
|
Loading…
Reference in New Issue
Block a user