From 204815e32e609026d1eb563cd690050673ae878f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 11 Aug 2023 04:44:05 +0200 Subject: emacs: Use ‘load-theme’ to load themes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows for the passing of the ‘t’ parameter, which avoids me needing to deal with the whole ‘is this font safe?’ prompt. --- .config/emacs/config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 1eba1be..67cec9e 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -592,8 +592,8 @@ why not make it random? (use-package color-theme-sanityinc-tomorrow :config (let ((n (random 2))) - (cond ((eq n 0) (color-theme-sanityinc-tomorrow-night)) - ((eq n 1) (color-theme-sanityinc-tomorrow-eighties))))) + (cond ((eq n 0) (load-theme 'sanityinc-tomorrow-night t)) + ((eq n 1) (load-theme 'sanityinc-tomorrow-eighties t))))) #+END_SRC -- cgit v1.2.3