mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(lib): doom-rcfile-read: ensure $PWD is the rcfile's dir
This commit is contained in:
parent
a8297a2565
commit
15a0e90808
1 changed files with 4 additions and 1 deletions
|
|
@ -817,7 +817,10 @@ issues"
|
|||
(or type
|
||||
(cdr (assoc (file-name-nondirectory file)
|
||||
doom-rcfile--alist)))
|
||||
v (if (listp f) (eval `(backquote ,f) t)))))))
|
||||
v (when (listp f)
|
||||
(let ((default-directory
|
||||
(directory-file-name (file-name-directory path))))
|
||||
(eval `(backquote ,f) t))))))))
|
||||
(puthash path rc doom-rcfile--cache)
|
||||
(cond ((null keys) rc)
|
||||
((symbolp keys) (cdr (assq keys (cdr rc))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue