summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
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))