mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-15 14:51:01 -08:00
fix(lib): profiles: allow generators w/o an init function
This commit is contained in:
parent
1e89556fa8
commit
84d5fa2b65
1 changed files with 2 additions and 1 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue