mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
doom-module-from-path: return nil if not in a module #2107
This commit is contained in:
@ -186,7 +186,8 @@ If ENABLED-ONLY, return nil if the containing module isn't enabled."
|
|||||||
(cdr doom--current-module))
|
(cdr doom--current-module))
|
||||||
doom--current-module)
|
doom--current-module)
|
||||||
doom--current-module)
|
doom--current-module)
|
||||||
(doom-module-from-path (file!)))
|
(ignore-errors
|
||||||
|
(doom-module-from-path (file!))))
|
||||||
(let* ((file-name-handler-alist nil)
|
(let* ((file-name-handler-alist nil)
|
||||||
(path (file-truename (or path (file!)))))
|
(path (file-truename (or path (file!)))))
|
||||||
(save-match-data
|
(save-match-data
|
||||||
|
Reference in New Issue
Block a user