When switching themes, only do so temporarily

If changes need to be done permanently, customize `custom-enabled-themes'.
This commit is contained in:
Daniel Borchmann 2020-06-27 11:16:49 +02:00
parent 67efe7f4c2
commit 5b6dcfe8d2
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

View File

@ -438,13 +438,15 @@ it. The bookmarks will finally be sorted by their name."
"Switch to dark theme.
This is `db-dark' and `solarized-dark'."
(interactive)
(custom-set-variables '(custom-enabled-themes '(db-dark solarized-dark))))
(load-theme 'solarized-dark)
(load-theme 'db-dark))
(defun db/switch-to-light-theme ()
"Switch to dark theme.
This is `db-light' and `solarized-light'."
(interactive)
(custom-set-variables '(custom-enabled-themes '(db-light solarized-light))))
(load-theme 'solarized-light)
(load-theme 'db-light))
;;; End