fix(lib): profiles: allow generators w/o an init function

This commit is contained in:
Henrik Lissner
2025-09-14 16:16:12 -04:00
parent 1e89556fa8
commit 84d5fa2b65

View File

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