[](https://waffle.io/sellout/emacs-color-theme-solarized)
Solarized Colorscheme for Emacs
[](https://waffle.io/sellout/emacs-color-theme-lunarized)
Lunarized Colorscheme for Emacs
===============================
Stolen from Ethan Schoonover <es@ethanschoonover.com> by Greg Pfeil <greg@technomadic.org>
Stolen from Ethan Schoonover <es@ethanschoonover.com> by Greg Pfeil
<greg@technomadic.org>. Desaturated [lunarized] version by Jacopo De
Simoi <wilderkde@gmail.com> All credit for the emacs adaptation go to
Greg Pfeil
Visit the [Solarized homepage]
------------------------------
See the [Solarized homepage] for screenshots,
details and colorscheme versions for Vim, Mutt, popular terminal emulators and
See the [Solarized homepage] for screenshots,
details and colorscheme versions for Vim, Mutt, popular terminal emulators and
other applications.
Screenshots
@ -19,14 +24,15 @@ Screenshots
Downloads
---------
If you have come across this colorscheme via the [Emacs-only repository] on
If you have come across this colorscheme via the [Emacs-only repository] on
github, see the link above to the Solarized homepage or visit the main [Solarized repository].
The [Emacs-only repository] is kept in sync with the main [Solarized repository]. Issues, bug reports, changelogs that are not specific to the Emacs implementation should be submitted to the main [Solarized repository].
1. Add the `emacs-color-theme-solarized` directory to your Emacs `custom-theme-load-path`.
2. Add `(load-theme 'solarized t)` to your Emacs init file.
1. Add the `emacs-color-theme-lunarized` directory to your Emacs `custom-theme-load-path`.
2. Add `(load-theme 'lunarized t)` to your Emacs init file.
3. Reload the init file, or restart Emacs.
### [color-theme] \(pre-Emacs 24\)
1. Download and install [color-theme].
2. Add the `emacs-color-theme-solarized` directory to your Emacs `load-path`.
3. Add `(require 'color-theme-solarized)` and `(color-theme-solarized)` to your Emacs init file (usually `~/.emacs`).
2. Add the `emacs-color-theme-lunarized` directory to your Emacs `load-path`.
3. Add `(require 'color-theme-lunarized)` and `(color-theme-lunarized)` to your Emacs init file (usually `~/.emacs`).
3. Reload the init file, or restart Emacs.
### 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`). 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.
To switch between the light and dark variations of Lunarized, 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
`'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:
@ -57,98 +70,98 @@ This allows you to have a mix of light and dark frames. I tend to use light fram
results in incorrect color handling on Macs. If you are using Emacs on a
Mac, we try to determine this value automatically. If this is `t` (the
default on Macs), Solarized works around it with alternative colors.
default on Macs), Lunarized works around it with alternative colors.
However, these colors are not totally portable, so you may be able to edit
the "Gen RGB" column in `solarized-definitions.el` to improve them further.
the "Gen RGB" column in `lunarized-definitions.el` to improve them further.
Code Notes
----------
I have attempted to modularize the creation of Emacs colorschemes in this script and, while it could be refactored further, it should be a good foundation for the creation of any color scheme. By simply changing the values in the `solarized-colors` table in `solarized-definitions.el` and testing in a GUI Emacs, you can rapidly prototype new colorschemes without diving into the weeds of line-item editing each syntax highlight declaration.
I have attempted to modularize the creation of Emacs colorschemes in this script and, while it could be refactored further, it should be a good foundation for the creation of any color scheme. By simply changing the values in the `lunarized-colors` table in `lunarized-definitions.el` and testing in a GUI Emacs, you can rapidly prototype new colorschemes without diving into the weeds of line-item editing each syntax highlight declaration.
The Values
----------
L\*a\*b values are canonical (White D65, Reference D50), other values are
L\*a\*b values are canonical (White D65, Reference D50), other values are