diff --git a/lisp/lib/profiles.el b/lisp/lib/profiles.el index 928b420fc..5ae7ab6f1 100644 --- a/lisp/lib/profiles.el +++ b/lisp/lib/profiles.el @@ -307,7 +307,8 @@ caches them in `doom--profiles'. If RELOAD? is non-nil, refresh the cache." (when (or (doom-context-p 'startup) (doom-context-p 'reload)) ,@(cl-loop for (_ genfn initfn) in doom-profile-generators - if (fboundp genfn) + if initfn + if (functionp genfn) collect (list initfn)))) (current-buffer))) (print! (success "Built %s") (filename init-file))))