From 7347f532723a40ad895690768f7dbff0a8e35174 Mon Sep 17 00:00:00 2001 From: Robert Lillack Date: Fri, 6 Nov 2020 08:49:58 +0100 Subject: [PATCH] =?UTF-8?q?MS=20supports=20light=20back=20now=20by=20not?= =?UTF-8?q?=20mapping=20=E2=80=9Cbold=E2=80=9D=20to=20white.=20https://git?= =?UTF-8?q?hub.com/microsoft/terminal/issues/2661?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/init.el b/init.el index fe7295e..56961e3 100644 --- a/init.el +++ b/init.el @@ -17,15 +17,9 @@ (package-refresh-contents)) (package-install-selected-packages) -;; Running on WSL? We're forced to use dark terminals here, so we set this to -;; help with the decision in the next block. -(when (and (null (terminal-parameter nil 'background-mode)) - (string-match "-[Mm]icrosoft" (or operating-system-release ""))) - (set-terminal-parameter nil 'background-mode 'dark)) - ;; Ok, rule is: GUI windows get light background, terminal windows get background matching ;; the terminal settings. (I prefer light background, but thats not possible everywhere) -(if (or window-system (eq 'light (terminal-parameter nil 'background-mode))) +(if (or window-system (not (eq 'dark (terminal-parameter nil 'background-mode)))) (load-theme 'modus-operandi) (load-theme 'modus-vivendi))