From 182e571584f0f526c512195f269cf6a26fb48ce4 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 5 Apr 2021 03:15:20 +0100 Subject: config: don't use themes in console --- init.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index 58968d4..9aa196f 100644 --- a/init.org +++ b/init.org @@ -436,8 +436,9 @@ (require 'jao-themes) (defun jao-themes-setup () - (let ((light (and window-system (not (jao-colors-scheme-dark-p))))) - (load-theme (if light 'jao-light 'jao-greenish) t))) + (let ((dark (jao-colors-scheme-dark-p))) + (when window-system + (load-theme (if dark 'jao-greenish 'jao-light) t)))) (when (not (eq window-system 'pgtk)) (jao-themes-setup)) -- cgit v1.2.3