doom/refresh-autoloads: autoload.el & autoload/*.el, instead of either-or

This commit is contained in:
Henrik Lissner 2017-02-08 19:58:12 -05:00
parent 7397a3545d
commit 273f3e3108

View file

@ -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)))