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:
Henrik Lissner 2018-05-25 00:55:03 +02:00
parent 2f83757018
commit 643ff13053
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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