mirror of
https://github.com/protesilaos/modus-themes.git
synced 2026-09-10 07:16:30 -04:00
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:
parent
754e4edbfc
commit
c61b4b6fc8
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue