Fix conditional use of 'require-theme'

This snippet is courtesy of Basil L. Contovounesios.  It is meant to
make the themes load their main library regardless of version or setup,
as discussed in issue 162:
<https://gitlab.com/protesilaos/modus-themes/-/issues/162>.
This commit is contained in:
Protesilaos Stavrou 2021-03-05 13:48:45 +02:00
parent 754e4edbfc
commit c61b4b6fc8
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 8 additions and 2 deletions

View file

@ -50,7 +50,10 @@
(require 'modus-themes)
(eval-and-compile
(unless (and (fboundp 'require-theme)
(require-theme 'modus-themes t))
(require 'modus-themes)))
(deftheme modus-operandi
"Accessible and customizable light theme (WCAG AAA standard).

View file

@ -50,7 +50,10 @@
(require 'modus-themes)
(eval-and-compile
(unless (and (fboundp 'require-theme)
(require-theme 'modus-themes t))
(require 'modus-themes)))
(deftheme modus-vivendi
"Accessible and customizable dark theme (WCAG AAA standard).