doom/refresh-autoloads: autoload.el & autoload/*.el, instead of either-or
This commit is contained in:
parent
7397a3545d
commit
273f3e3108
1 changed files with 4 additions and 4 deletions
|
@ -266,10 +266,10 @@ the commandline."
|
||||||
(setq autoload-files
|
(setq autoload-files
|
||||||
(append (-flatten (--map (let ((auto-dir (f-expand "autoload" it))
|
(append (-flatten (--map (let ((auto-dir (f-expand "autoload" it))
|
||||||
(auto-file (f-expand "autoload.el" it)))
|
(auto-file (f-expand "autoload.el" it)))
|
||||||
(cond ((f-directory-p auto-dir)
|
(append (and (f-exists-p auto-file)
|
||||||
(f-glob "*.el" auto-dir))
|
(list auto-file))
|
||||||
((f-exists-p auto-file)
|
(and (f-directory-p auto-dir)
|
||||||
auto-file)))
|
(f-glob "*.el" auto-dir))))
|
||||||
(--map (doom-module-path (car it) (cdr it))
|
(--map (doom-module-path (car it) (cdr it))
|
||||||
doom-modules)))
|
doom-modules)))
|
||||||
(f-glob "autoload/*.el" doom-core-dir)))
|
(f-glob "autoload/*.el" doom-core-dir)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue