doom-module-from-path: return nil if not in a module #2107
This commit is contained in:
parent
5ece51a2a6
commit
d11902f313
1 changed files with 2 additions and 1 deletions
|
@ -186,7 +186,8 @@ If ENABLED-ONLY, return nil if the containing module isn't enabled."
|
|||
(cdr 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)
|
||||
(path (file-truename (or path (file!)))))
|
||||
(save-match-data
|
||||
|
|
Loading…
Reference in a new issue