From 0e653cba85e551f78e633e73dd400ece231e4376 Mon Sep 17 00:00:00 2001 From: Jeff Ramnani Date: Thu, 5 Mar 2015 22:44:00 -0600 Subject: [PATCH] Document how to set the 'background-mode for terminals. This documents a fix for issue #142 where you must set a terminal parameter in order to enable the solarized-dark theme when running Emacs in a terminal. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e72d65..400e11e 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Installation & Usage ### all versions -To switch between the light and dark variations of Solarized, set the frame’s `background-mode`. This can be accomplished globally using `M-x customize-variable frame-background-mode` or on a per-frame basis with `(set-frame-parameter nil 'background-mode 'light)` (or `'dark`). Remember to call `enable-theme` after changing the background mode to update the state of the theme. +To switch between the light and dark variations of Solarized, set the frame’s `background-mode`. This can be accomplished globally using `M-x customize-variable frame-background-mode` or on a per-frame basis with `(set-frame-parameter nil 'background-mode 'light)` (or `'dark`). If you're in a terminal, you must also set the terminal parameter with `(set-terminal-parameter nil 'background-mode 'light)` (or `'dark`). Remember to call `enable-theme` after changing the background mode to update the state of the theme. This allows you to have a mix of light and dark frames. I tend to use light frames in the GUI and dark frames in my terminal, so I use the following code: