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
|
||||
(append (-flatten (--map (let ((auto-dir (f-expand "autoload" it))
|
||||
(auto-file (f-expand "autoload.el" it)))
|
||||
(cond ((f-directory-p auto-dir)
|
||||
(f-glob "*.el" auto-dir))
|
||||
((f-exists-p auto-file)
|
||||
auto-file)))
|
||||
(append (and (f-exists-p auto-file)
|
||||
(list auto-file))
|
||||
(and (f-directory-p auto-dir)
|
||||
(f-glob "*.el" auto-dir))))
|
||||
(--map (doom-module-path (car it) (cdr it))
|
||||
doom-modules)))
|
||||
(f-glob "autoload/*.el" doom-core-dir)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue