summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-04-05 03:15:20 +0100
committerjao <jao@gnu.org>2021-04-05 03:15:20 +0100
commit182e571584f0f526c512195f269cf6a26fb48ce4 (patch)
tree473ecdbeda3c38b7cbdfc4cbd3979fb66bc53535 /init.org
parent1832ca950d97093436088bba97f6256d414c344a (diff)
downloadelibs-182e571584f0f526c512195f269cf6a26fb48ce4.tar.gz
elibs-182e571584f0f526c512195f269cf6a26fb48ce4.tar.bz2
config: don't use themes in console
Diffstat (limited to 'init.org')
-rw-r--r--init.org5
1 files 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))