From 98632fe0861533e32db326d5f7fb985627ceb97b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 15 Jun 2018 16:04:27 +0200 Subject: [PATCH] Fix doom-module-from-path on module directories Allow PATH to be an exact path to a module. --- core/core-modules.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-modules.el b/core/core-modules.el index b88d3d760..c6e7b0b55 100644 --- a/core/core-modules.el +++ b/core/core-modules.el @@ -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)