summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-05-15 20:29:55 +0100
committerjao <jao@gnu.org>2022-05-15 20:29:55 +0100
commit6b0e081f4270be32d63023389a61cdda848bb2ec (patch)
tree5c670373df4b5b01928e2fed887e6c7994ac0315
parentbc27e8119f2c9e9a47a6ad2874c83308cd6c2198 (diff)
downloadelibs-6b0e081f4270be32d63023389a61cdda848bb2ec.tar.gz
elibs-6b0e081f4270be32d63023389a61cdda848bb2ec.tar.bz2
themes for emacs in term
-rw-r--r--init.org13
1 files changed, 9 insertions, 4 deletions
diff --git a/init.org b/init.org
index 76aaf6b..ac1463e 100644
--- a/init.org
+++ b/init.org
@@ -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