about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-09-07T15·13+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-09-07T15·14+0100
commit3a87f3485f896bf7ef2323162ed97502e5d8ff38 (patch)
tree317f0e6ca1aaa58767c6f6a40977e55cab67824f /emacs/.emacs.d/wpc
parentbdd9d963be270dc60de49c190f5ff51d8d78e405 (diff)
Conditionally load-theme
When the `window-system` is set, use `solarized-light`. When it's not,
use `wombat`.
Diffstat (limited to 'emacs/.emacs.d/wpc')
-rw-r--r--emacs/.emacs.d/wpc/wpc-ui.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-ui.el b/emacs/.emacs.d/wpc/wpc-ui.el
index 35ca918763eb..6d407e6f59af 100644
--- a/emacs/.emacs.d/wpc/wpc-ui.el
+++ b/emacs/.emacs.d/wpc/wpc-ui.el
@@ -163,9 +163,12 @@
 (when (device-work-laptop?)
   (laptop-battery-display))
 
-(fonts-whitelist-set "JetBrainsMono")
-(fonts-enable-ligatures)
-(colorscheme-whitelist-set 'doom-solarized-light)
+(if window-system
+    (progn
+      (fonts-whitelist-set "JetBrainsMono")
+      (fonts-enable-ligatures)
+      (colorscheme-whitelist-set 'doom-solarized-light))
+  (load-theme 'wombat))
 
 (modeline-setup)