mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-14 15:46:56 -05:00
fix(lib): profiles: allow generators w/o an init function
This commit is contained in:
@@ -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))))
|
||||
|
Reference in New Issue
Block a user