in my dark and light themes first disable enabled themes
This commit is contained in:
parent
f73c09e2ba
commit
afae281d06
6
init.el
6
init.el
@ -232,17 +232,15 @@ Argument FRAMES has the same meaning as for `set-frame-font'"
|
||||
(defun my-light-theme ()
|
||||
"Switch to my light theme."
|
||||
(interactive)
|
||||
(mapc #'disable-theme custom-enabled-themes)
|
||||
(when (load-theme my-light-theme)
|
||||
(enable-theme my-light-theme)
|
||||
(disable-theme my-dark-theme)
|
||||
(powerline-reset)))
|
||||
|
||||
(defun my-dark-theme ()
|
||||
"Switch to my dark theme."
|
||||
(interactive)
|
||||
(mapc #'disable-theme custom-enabled-themes)
|
||||
(when (load-theme my-dark-theme)
|
||||
(enable-theme my-dark-theme)
|
||||
(disable-theme my-light-theme)
|
||||
(powerline-reset)))
|
||||
|
||||
(when window-system
|
||||
|
Loading…
x
Reference in New Issue
Block a user