Add doom-(pre|post)-reload-theme-hook

This commit is contained in:
Henrik Lissner 2017-06-29 14:58:10 +02:00
parent 7fc9cb5511
commit cca37f2508
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 8 additions and 1 deletions

View file

@ -7,6 +7,11 @@
(unless doom-theme
(setq doom-theme 'doom-one))
;; Ensure `doom/reload' reloads common faces
(defun +doom|reload-theme ()
(load "doom-themes-common.el" nil t))
(add-hook 'doom-pre-reload-theme-hook #'+doom|reload-theme)
;; blink mode-line on errors
(add-hook 'doom-post-init-hook #'doom-themes-visual-bell-config)