From 643ff130532477d889eda890c0493a6e36ded18e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 25 May 2018 00:55:03 +0200 Subject: [PATCH] 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). --- modules/ui/doom/config.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ui/doom/config.el b/modules/ui/doom/config.el index b68313bef..98edef3da 100644 --- a/modules/ui/doom/config.el +++ b/modules/ui/doom/config.el @@ -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