Fix doom-module-from-path on module directories
Allow PATH to be an exact path to a module.
This commit is contained in:
parent
58601488d9
commit
98632fe086
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ This doesn't require modules to be enabled. For enabled modules us
|
||||||
(let ((path (or path (FILE!))))
|
(let ((path (or path (FILE!))))
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(setq path (file-truename path))
|
(setq path (file-truename path))
|
||||||
(when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)/.*$" path)
|
(when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)\\(?:/.*\\)?$" path)
|
||||||
(when-let* ((category (match-string 1 path))
|
(when-let* ((category (match-string 1 path))
|
||||||
(module (match-string 2 path)))
|
(module (match-string 2 path)))
|
||||||
(cons (doom-keyword-intern category)
|
(cons (doom-keyword-intern category)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue