mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix: doom-module-locate-path: try load-suffixes
This commit is contained in:
@ -184,7 +184,7 @@ returns nil, otherwise an absolute path."
|
||||
(if file
|
||||
;; PERF: locate-file-internal is a little faster for finding files,
|
||||
;; but its interface for finding directories is clumsy.
|
||||
(locate-file-internal path doom-modules-dirs)
|
||||
(locate-file-internal path doom-modules-dirs '(".elc" ".el"))
|
||||
(cl-loop for default-directory in doom-modules-dirs
|
||||
if (file-exists-p path)
|
||||
return (expand-file-name path)))))))
|
||||
|
Reference in New Issue
Block a user