Skip to content

Commit

Permalink
MS supports light back now by not mapping “bold” to white. microsoft/…
Browse files Browse the repository at this point in the history
  • Loading branch information
roblillack committed Nov 6, 2020
1 parent 4f13837 commit 7347f53
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 7347f53

Please sign in to comment.