From 20a3d96799f56969d27ab9b5d9742a7a0518ce27 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 2 Apr 2024 15:03:52 -0600 Subject: [PATCH] Make light and dark themes customizable --- emacs/.emacs.d/config/init-mac.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/config/init-mac.el b/emacs/.emacs.d/config/init-mac.el index c27eb7a..3c0adf1 100644 --- a/emacs/.emacs.d/config/init-mac.el +++ b/emacs/.emacs.d/config/init-mac.el @@ -1,7 +1,16 @@ ;; -*- lexical-binding: t; -*- -(defvar my-light-theme 'doom-solarized-light) -(defvar my-dark-theme 'doom-solarized-dark) +(defcustom my-light-theme 'doom-solarized-light + "My light theme." + :type 'symbol + :group 'personal + :options (custom-available-themes)) + +(defcustom my-dark-theme 'doom-solarized-dark + "My dark theme." + :type 'symbol + :group 'personal + :options (custom-available-themes)) (defun mac-appearance () (plist-get (mac-application-state) :appearance))