Implement workaround for using 'require-theme'

This is related to issue 164, which pertains to a problem in byte
compilation that is experienced while using 'straight.el' on Emacs 28:
<https://gitlab.com/protesilaos/modus-themes/-/issues/164>.

Thanks, in no particular order, to everyone who has participated thus
far in that thread: John Haman, Trey, Nicolas De Jaeghere, Mauro Aranda.
This commit is contained in:
Protesilaos Stavrou 2021-03-12 21:48:42 +02:00
parent b54894725f
commit 6f26cc8fb1
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 6 additions and 0 deletions

View file

@ -52,6 +52,9 @@
(eval-and-compile
(unless (and (fboundp 'require-theme)
(when load-file-name
(equal (file-name-directory load-file-name)
(expand-file-name "themes/" data-directory)))
(require-theme 'modus-themes t))
(require 'modus-themes)))

View file

@ -52,6 +52,9 @@
(eval-and-compile
(unless (and (fboundp 'require-theme)
(when load-file-name
(equal (file-name-directory load-file-name)
(expand-file-name "themes/" data-directory)))
(require-theme 'modus-themes t))
(require 'modus-themes)))