mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
Change doom-theme on load-theme
This commit is contained in:
@@ -357,7 +357,8 @@ from the default."
|
|||||||
(advice-add #'switch-to-buffer :around #'doom*switch-buffer-hooks)
|
(advice-add #'switch-to-buffer :around #'doom*switch-buffer-hooks)
|
||||||
(advice-add #'display-buffer :around #'doom*switch-buffer-hooks)
|
(advice-add #'display-buffer :around #'doom*switch-buffer-hooks)
|
||||||
|
|
||||||
(defun doom*load-theme-hooks (&rest _)
|
(defun doom*load-theme-hooks (theme &rest _)
|
||||||
|
(setq doom-theme theme)
|
||||||
(run-hook-with-args 'doom-load-theme-hook))
|
(run-hook-with-args 'doom-load-theme-hook))
|
||||||
(advice-add #'load-theme :after #'doom*load-theme-hooks)
|
(advice-add #'load-theme :after #'doom*load-theme-hooks)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user