ui/doom: only load solaire-mode for supported themes
This commit is contained in:
parent
7ac155f68d
commit
20e2aa0b18
1 changed files with 4 additions and 3 deletions
|
@ -41,12 +41,13 @@
|
|||
|
||||
|
||||
(def-package! solaire-mode
|
||||
:after doom-themes
|
||||
:defer t
|
||||
:init
|
||||
(add-hook 'doom-load-theme-hook
|
||||
(defun +doom-solaire-mode-swap-bg-maybe-h ()
|
||||
(when-let (rule (cdr (assq doom-theme +doom-solaire-themes)))
|
||||
(solaire-mode-swap-bg)))
|
||||
(pcase-let ((`(,theme . ,swap) (assq doom-theme +doom-solaire-themes)))
|
||||
(require 'solaire-mode)
|
||||
(if swap (solaire-mode-swap-bg))))
|
||||
'append)
|
||||
:config
|
||||
;; fringe can become unstyled when deleting or focusing frames
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue