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
|
||||
(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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue