From c3dbe747870cfc4eb57d08d844ff37dabf5aa2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Sun, 12 Nov 2017 14:53:17 +0100 Subject: [PATCH] change light and dark theme, simplify selecting new themes --- init.el | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/init.el b/init.el index 1ba0fcb..b6db433 100644 --- a/init.el +++ b/init.el @@ -197,20 +197,23 @@ Argument FRAMES has the same meaning as for `set-frame-font'" (if (not (featurep 'powerline)) (powerline-center-theme))) +(setq my-dark-theme 'nimbus + my-light-theme 'leuven) + (defun my-light-theme () - "Switch to sanityinc-tomorrow-day theme." + "Switch to my light theme." (interactive) - (when (load-theme 'sanityinc-tomorrow-day) - (enable-theme 'sanityinc-tomorrow-day) - (disable-theme 'sanityinc-tomorrow-night) + (when (load-theme my-light-theme) + (enable-theme my-light-theme) + (disable-theme my-dark-theme) (powerline-reset))) (defun my-dark-theme () - "Switch to sanityinc-tomorrow-night dark theme." + "Switch to my dark theme." (interactive) - (when (load-theme 'sanityinc-tomorrow-night) - (enable-theme 'sanityinc-tomorrow-night) - (disable-theme 'sanityinc-tomorrow-day) + (when (load-theme my-dark-theme) + (enable-theme my-dark-theme) + (disable-theme my-light-theme) (powerline-reset))) (when window-system