Refactor doom//reload-theme; remove obsolete hooks

This commit is contained in:
Henrik Lissner 2018-03-22 23:26:58 -04:00
parent f8801640ba
commit bc6000a731
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -96,11 +96,10 @@ presentations."
;;;###autoload
(defun doom//reload-theme ()
"Reset the color theme currently in use."
"Reset the current color theme and fonts."
(interactive)
(let ((theme (or (car-safe custom-enabled-themes) doom-theme)))
(when theme
(mapc #'disable-theme custom-enabled-themes))
(run-hooks 'doom-pre-reload-theme-hook)
(doom|init-ui)
(run-hooks 'doom-post-reload-theme-hook)))
(doom|init-theme)
(doom|init-fonts)))