diff options
| author | Protesilaos Stavrou <info@protesilaos.com> | 2023-08-25 06:45:25 +0300 |
|---|---|---|
| committer | Protesilaos Stavrou <info@protesilaos.com> | 2023-08-25 06:45:25 +0300 |
| commit | 559de2d1604b264a28493f3c082ba9a0d103670b (patch) | |
| tree | e4c0423595cb9695243b5939612e0a98207aea28 /ef-deuteranopia-dark-theme.el | |
| parent | 25f68177271283edddfdc9b15d56b845bb0b9342 (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-deuteranopia-dark-theme.el')
| -rw-r--r-- | ef-deuteranopia-dark-theme.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ef-deuteranopia-dark-theme.el b/ef-deuteranopia-dark-theme.el index 93a1295..101f620 100644 --- a/ef-deuteranopia-dark-theme.el +++ b/ef-deuteranopia-dark-theme.el @@ -40,8 +40,12 @@ ;; Most of the colors here, like the red and green hues, are defined ;; simply to preserve compatibility with the rest of the project. We ;; don't actually rely on them for anything critical. +;;;###theme-autoload (deftheme ef-deuteranopia-dark - "Legible dark theme, optimized for red-green color deficiency.") + "Legible dark theme, optimized for red-green color deficiency." + :background-mode 'dark + :kind 'color-scheme + :family 'ef) (defconst ef-deuteranopia-dark-palette '( @@ -290,7 +294,4 @@ further details)." (provide-theme 'ef-deuteranopia-dark)) -;;;###theme-autoload -(put 'ef-deuteranopia-dark 'theme-properties '(:background-mode dark :kind color-scheme :family ef)) - ;;; ef-deuteranopia-dark-theme.el ends here |
