mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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
|
(if file
|
||||||
;; PERF: locate-file-internal is a little faster for finding files,
|
;; PERF: locate-file-internal is a little faster for finding files,
|
||||||
;; but its interface for finding directories is clumsy.
|
;; 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
|
(cl-loop for default-directory in doom-modules-dirs
|
||||||
if (file-exists-p path)
|
if (file-exists-p path)
|
||||||
return (expand-file-name path)))))))
|
return (expand-file-name path)))))))
|
||||||
|
Reference in New Issue
Block a user