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