From 273f3e31084c1349f6c959498314f4c0772b149f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 8 Feb 2017 19:58:12 -0500 Subject: [PATCH] doom/refresh-autoloads: autoload.el & autoload/*.el, instead of either-or --- core/core-packages.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-packages.el b/core/core-packages.el index f1125e71e..f3af04a70 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -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)))