Fix async package functions not running from right cwd
This commit is contained in:
parent
5048b72c12
commit
9628b21d22
1 changed files with 3 additions and 2 deletions
|
@ -493,8 +493,9 @@ loads MODULE SUBMODULE's packages.el file."
|
||||||
t)))
|
t)))
|
||||||
|
|
||||||
(defun doom-packages--async-run (fn)
|
(defun doom-packages--async-run (fn)
|
||||||
(let ((compilation-filter-hook
|
(let* ((default-directory doom-emacs-dir)
|
||||||
(list (lambda () (ansi-color-apply-on-region compilation-filter-start (point))))))
|
(compilation-filter-hook
|
||||||
|
(list (lambda () (ansi-color-apply-on-region compilation-filter-start (point))))))
|
||||||
(compile (format "%s --quick --batch -l core/core.el -f %s"
|
(compile (format "%s --quick --batch -l core/core.el -f %s"
|
||||||
(executable-find "emacs")
|
(executable-find "emacs")
|
||||||
(symbol-name fn)))
|
(symbol-name fn)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue