🐛 Fix org font adjustments not being applied on theme change

Since the day and night themes (mmk2410/theme-day and
mmk2410/theme-night) are symbols and not strings the test whether the
theme to switch to begins with "ef-" yields an execution error.

This is now fixed by casting the theme name to a string for the
comparison using symbol-name.
This commit is contained in:
Marcel Kapfer 2022-11-26 12:39:58 +01:00
parent 1d371e3598
commit 8401d54f35
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -501,7 +501,7 @@ During the last weeks I got used to using a light theme during daytime and a dar
(defun mmk2410/switch-theme (theme)
(mapcar 'disable-theme custom-enabled-themes)
(load-theme theme t)
(unless (string-prefix-p "ef-" theme)
(unless (string-prefix-p "ef-" (symbol-name theme))
(mmk2410/org-font-adjust-headlines)
(mmk2410/org-font-adjust-variable-pitch)))