diff options
author | jao <jao@gnu.org> | 2021-04-05 03:15:20 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-04-05 03:15:20 +0100 |
commit | 182e571584f0f526c512195f269cf6a26fb48ce4 (patch) | |
tree | 473ecdbeda3c38b7cbdfc4cbd3979fb66bc53535 /init.org | |
parent | 1832ca950d97093436088bba97f6256d414c344a (diff) | |
download | elibs-182e571584f0f526c512195f269cf6a26fb48ce4.tar.gz elibs-182e571584f0f526c512195f269cf6a26fb48ce4.tar.bz2 |
config: don't use themes in console
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)) |