mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-01-30 12:22:31 -08:00
fix: doom-module-from-path: doom-{core,user}-dir detection
This commit is contained in:
parent
4d83719e58
commit
ffac5ea4fa
1 changed files with 2 additions and 2 deletions
|
|
@ -458,9 +458,9 @@ If ENABLED-ONLY?, return nil if the containing module isn't enabled."
|
|||
(and (or (null enabled-only?)
|
||||
(doom-module-active-p group name))
|
||||
(cons group name))))
|
||||
((string-match (concat "^" (regexp-quote doom-core-dir)) path)
|
||||
((file-in-directory-p path doom-core-dir)
|
||||
(cons :doom nil))
|
||||
((string-match (concat "^" (regexp-quote doom-user-dir)) path)
|
||||
((file-in-directory-p path doom-user-dir)
|
||||
(cons :user nil))))))
|
||||
|
||||
(defun doom-module-load-path (&optional module-load-path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue