mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-14 15:46:56 -05:00
Refactor doom//reload-theme; remove obsolete hooks
This commit is contained in:
@@ -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)))
|
||||
|
Reference in New Issue
Block a user