aboutsummaryrefslogtreecommitdiff
path: root/ef-frost-theme.el
diff options
context:
space:
mode:
authorProtesilaos Stavrou <info@protesilaos.com>2023-08-25 06:45:25 +0300
committerProtesilaos Stavrou <info@protesilaos.com>2023-08-25 06:45:25 +0300
commit559de2d1604b264a28493f3c082ba9a0d103670b (patch)
treee4c0423595cb9695243b5939612e0a98207aea28 /ef-frost-theme.el
parent25f68177271283edddfdc9b15d56b845bb0b9342 (diff)
Expand 'deftheme' with metadata
This is to support new features in Emacs where themes can specify the set they belong to, as well as whether they are light or dark. The built-in command is 'theme-choose-variant'. This is in response to Emacs bug#65468: <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65468>. Thanks to Mauro Aranda for bringing this matter to my attention.
Diffstat (limited to 'ef-frost-theme.el')
-rw-r--r--ef-frost-theme.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/ef-frost-theme.el b/ef-frost-theme.el
index 2e5b777..980fee3 100644
--- a/ef-frost-theme.el
+++ b/ef-frost-theme.el
@@ -37,8 +37,12 @@
(eval-and-compile
(require 'ef-themes)
+;;;###theme-autoload
(deftheme ef-frost
- "Legible light theme with blue, cyan, teal, purple colors.")
+ "Legible light theme with blue, cyan, teal, purple colors."
+ :background-mode 'light
+ :kind 'color-scheme
+ :family 'ef)
(defconst ef-frost-palette
'(
@@ -287,7 +291,4 @@ further details)."
(provide-theme 'ef-frost))
-;;;###theme-autoload
-(put 'ef-frost 'theme-properties '(:background-mode light :kind color-scheme :family ef))
-
;;; ef-frost-theme.el ends here