diff options
author | jao <jao@gnu.org> | 2022-05-15 20:29:55 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-05-15 20:29:55 +0100 |
commit | 6b0e081f4270be32d63023389a61cdda848bb2ec (patch) | |
tree | 5c670373df4b5b01928e2fed887e6c7994ac0315 | |
parent | bc27e8119f2c9e9a47a6ad2874c83308cd6c2198 (diff) | |
download | elibs-6b0e081f4270be32d63023389a61cdda848bb2ec.tar.gz elibs-6b0e081f4270be32d63023389a61cdda848bb2ec.tar.bz2 |
themes for emacs in term
-rw-r--r-- | init.org | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -382,14 +382,19 @@ (defvar jao-theme-dark 'jao-dark) (defvar jao-theme-light 'jao-light) + (defvar jao-theme-term-dark 'modus-vivendi) + (defvar jao-theme-term-light 'modus-operandi) (defun jao-themes-setup () - (let ((dark (jao-colors-scheme-dark-p))) - (load-theme (if dark jao-theme-dark jao-theme-light) t) + (let* ((dark (jao-colors-scheme-dark-p)) + (theme (cond ((and dark window-system) jao-theme-dark) + (dark jao-theme-term-dark) + (window-system jao-theme-light) + (t jao-theme-term-light)))) + (load-theme theme t) (modify-all-frames-parameters `((font . ,jao-themes-default-face))))) - (when (and window-system (not (eq window-system 'pgtk))) - (jao-themes-setup)) + (unless (eq window-system 'pgtk) (jao-themes-setup)) (global-font-lock-mode 1) #+end_src |