mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix doom-module-from-path on module directories
Allow PATH to be an exact path to a module.
This commit is contained in:
@ -132,7 +132,7 @@ This doesn't require modules to be enabled. For enabled modules us
|
||||
(let ((path (or path (FILE!))))
|
||||
(save-match-data
|
||||
(setq path (file-truename path))
|
||||
(when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)/.*$" path)
|
||||
(when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)\\(?:/.*\\)?$" path)
|
||||
(when-let* ((category (match-string 1 path))
|
||||
(module (match-string 2 path)))
|
||||
(cons (doom-keyword-intern category)
|
||||
|
Reference in New Issue
Block a user