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.
This commit is contained in:
Jeff Ramnani 2015-03-05 22:44:00 -06:00
parent 31a62c7325
commit 0e653cba85
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ Installation & Usage
### all versions
To switch between the light and dark variations of Solarized, set the frames `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 frames `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: