Refactor doom//reload-theme; remove obsolete hooks
This commit is contained in:
parent
f8801640ba
commit
bc6000a731
1 changed files with 3 additions and 4 deletions
|
@ -96,11 +96,10 @@ presentations."
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom//reload-theme ()
|
(defun doom//reload-theme ()
|
||||||
"Reset the color theme currently in use."
|
"Reset the current color theme and fonts."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((theme (or (car-safe custom-enabled-themes) doom-theme)))
|
(let ((theme (or (car-safe custom-enabled-themes) doom-theme)))
|
||||||
(when theme
|
(when theme
|
||||||
(mapc #'disable-theme custom-enabled-themes))
|
(mapc #'disable-theme custom-enabled-themes))
|
||||||
(run-hooks 'doom-pre-reload-theme-hook)
|
(doom|init-theme)
|
||||||
(doom|init-ui)
|
(doom|init-fonts)))
|
||||||
(run-hooks 'doom-post-reload-theme-hook)))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue