ui/doom: make solaire-mode a little pickier
Instead of only activating in buffers that a real (which is more selective), simply activate in buffers that are file-visiting (this means that real buffers that aren't highlighted can exist, particularly term/eshell buffers).
This commit is contained in:
parent
2f83757018
commit
643ff13053
1 changed files with 1 additions and 2 deletions
|
@ -50,8 +50,7 @@
|
|||
(if (cdr rule) (solaire-mode-swap-bg))))
|
||||
(add-hook 'doom-load-theme-hook #'+doom|solaire-mode-swap-bg-maybe t)
|
||||
:config
|
||||
(add-hook 'after-change-major-mode-hook #'turn-on-solaire-mode)
|
||||
(setq solaire-mode-real-buffer-fn #'doom-real-buffer-p)
|
||||
(add-hook 'change-major-mode-after-body-hook #'turn-on-solaire-mode)
|
||||
;; fringe can become unstyled when deleting or focusing frames
|
||||
(add-hook 'focus-in-hook #'solaire-mode-reset)
|
||||
;; Prevent color glitches when reloading either DOOM or loading a new theme
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue