mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: type error if default returns nil :foreground/:background
Ref: #8059
This commit is contained in:
@ -590,8 +590,10 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||
(put 'doom-theme 'previous-themes (or last-themes 'none))
|
||||
;; DEPRECATED Hook into `enable-theme-functions' when we target 29
|
||||
(doom-run-hooks 'doom-load-theme-hook)
|
||||
(setf (alist-get 'foreground-color default-frame-alist) (face-foreground 'default nil t)
|
||||
(alist-get 'background-color default-frame-alist) (face-background 'default nil t)))))))
|
||||
(when-let* ((fg (face-foreground 'default nil t))
|
||||
(bg (face-background 'default nil t)))
|
||||
(setf (alist-get 'foreground-color default-frame-alist) fg
|
||||
(alist-get 'background-color default-frame-alist) bg)))))))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user