ui/doom: turn-on-solaire-mode on org-capture-mode-hook

This commit is contained in:
Henrik Lissner 2018-02-07 01:36:16 -05:00
parent 4ca2d1ef27
commit bd6fb35007
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -27,7 +27,11 @@
:config
(setq solaire-mode-real-buffer-fn #'doom-real-buffer-p)
;; Prevent color glitches when reloading either DOOM or the theme
(add-hook! '(doom-init-theme-hook doom-reload-hook) #'solaire-mode-reset))
(add-hook! '(doom-init-theme-hook doom-reload-hook)
#'solaire-mode-reset)
;; org-capture takes an org buffer and narrows it. The result is erroneously
;; considered an unreal buffer, so solaire-mode must be restored.
(add-hook 'org-capture-mode-hook #'turn-on-solaire-mode))
(after! hideshow