From ffac5ea4fa620d08d77e0c63b46f79a0ead50529 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 26 Oct 2024 16:57:36 -0400 Subject: [PATCH] fix: doom-module-from-path: doom-{core,user}-dir detection --- lisp/doom-modules.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/doom-modules.el b/lisp/doom-modules.el index 8c6307fcc..7efc8f689 100644 --- a/lisp/doom-modules.el +++ b/lisp/doom-modules.el @@ -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)