mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -50,8 +50,7 @@
|
|||||||
(if (cdr rule) (solaire-mode-swap-bg))))
|
(if (cdr rule) (solaire-mode-swap-bg))))
|
||||||
(add-hook 'doom-load-theme-hook #'+doom|solaire-mode-swap-bg-maybe t)
|
(add-hook 'doom-load-theme-hook #'+doom|solaire-mode-swap-bg-maybe t)
|
||||||
:config
|
:config
|
||||||
(add-hook 'after-change-major-mode-hook #'turn-on-solaire-mode)
|
(add-hook 'change-major-mode-after-body-hook #'turn-on-solaire-mode)
|
||||||
(setq solaire-mode-real-buffer-fn #'doom-real-buffer-p)
|
|
||||||
;; fringe can become unstyled when deleting or focusing frames
|
;; fringe can become unstyled when deleting or focusing frames
|
||||||
(add-hook 'focus-in-hook #'solaire-mode-reset)
|
(add-hook 'focus-in-hook #'solaire-mode-reset)
|
||||||
;; Prevent color glitches when reloading either DOOM or loading a new theme
|
;; Prevent color glitches when reloading either DOOM or loading a new theme
|
||||||
|
Reference in New Issue
Block a user