From 5b6dcfe8d2809537d668e74cc56dc784c04a86a4 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 27 Jun 2020 11:16:49 +0200 Subject: [PATCH] When switching themes, only do so temporarily If changes need to be done permanently, customize `custom-enabled-themes'. --- site-lisp/db-utils.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index 3a60240..8414769 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -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