🐛 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:
parent
1d371e3598
commit
8401d54f35
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue