From 39c75fa5d1a922eec77880c5a964cd019a6e8d69 Mon Sep 17 00:00:00 2001 From: Philip Ye Date: Thu, 22 Aug 2024 09:37:47 +0800 Subject: [PATCH] more theme related changes --- phye-lisp/phye-init-themes.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/phye-lisp/phye-init-themes.el b/phye-lisp/phye-init-themes.el index 56f14ad7b..44e883701 100644 --- a/phye-lisp/phye-init-themes.el +++ b/phye-lisp/phye-init-themes.el @@ -1,4 +1,12 @@ -(load-theme 'cyberpunk t) +(defun phye/load-theme (theme) + "Load THEME after disable custom themes." + (mapc #'disable-theme custom-enabled-themes) + (load-theme theme t)) + +(if (display-graphic-p) + (phye/load-theme 'doom-monokai-classic) + (phye/load-theme 'kaolin-galaxy)) + (customize-set-variable 'my-favorite-color-themes '(afternoon @@ -220,11 +228,6 @@ (defvar previous-dark-theme 'cyberpunk "Previous dark theme before toggle.") -(defun phye/load-theme (theme) - "Load THEME after disable custom themes." - (mapc #'disable-theme custom-enabled-themes) - (load-theme theme t)) - (defun phye/set-bg-color (&optional light) "Set ivy-current-match color based on LIGHT." (interactive)