From 3a87f3485f896bf7ef2323162ed97502e5d8ff38 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 7 Sep 2020 16:13:53 +0100 Subject: Conditionally load-theme When the `window-system` is set, use `solarized-light`. When it's not, use `wombat`. --- emacs/.emacs.d/wpc/wpc-ui.el | 9 ++++++--- 1 file 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) -- cgit 1.4.1