From 8401d54f35890d39c02c0c99e5e7c8108228074a Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 26 Nov 2022 12:39:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20org=20font=20adjustments?= =?UTF-8?q?=20not=20being=20applied=20on=20theme=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.org b/config.org index f51a61e..214b067 100644 --- a/config.org +++ b/config.org @@ -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)))