sellout / emacs-color-theme-solarized

Emacs highlighting using Ethan Schoonover’s Solarized color scheme
http://ethanschoonover.com/solarized
MIT License
1.16k stars 202 forks source link

Colour Mismatch iTerm 2/Emacs GUI and Solarized Light #120

Open peterjcaulfield opened 9 years ago

peterjcaulfield commented 9 years ago

I'm having an issue with solarized light when running emacs from iTerm 2, and it would appear, in GUI mode albeit to a lesser extent. I'm just trying to get it working when running from iTerm 2 ideally.

I'm using the solarized light theme for iTerm 2 as advised in the README, with a term value of xterm-256color. Values to note from emacs are:

color-cells: 256 version: GNU Emacs 24.3.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19)

Screen shot below shows how solarized looks in the following order:

  1. emacs running in iTerm 2
  2. emacs running in GUI mode
  3. how vim looks using solarized

screen shot 2014-07-31 at 16 21 57

Any help would be great :)

Thanks

peterjcaulfield commented 9 years ago

It would appear the only way get this working within iTerm is to set TERM to xterm-16color using an alias in your .bash_aliases: alias="TERM=xterm-16color emacs".

I didn't realise the syntax regex in emacs has less distinctions than in vim, so syntax highlighting will always appear different (e.g parens not being highlighted), unless you define some custom font-lock faces on top of any theme or syntax highlighting lib.

Not sure how to get GUI mode working properly however. (display-color-cells) reports 16777216 colours, and the result is everything appears darker with lower contrast. If anyone happens to know what to do to get the GUI to match emacs running from iTerm please let me know :)

Thanks

sellout commented 9 years ago

There are ways to get highlighting on parens – show-paren and parenface are two packages that might help. But I’m not sure why those parens are red in Vim – I wouldn’t have guessed that’s something Solarized would do. Can you tell me what vim highlight is used for those parens?

As far as things appearing darker in the GUI, what is solarized-broken-srgb set to? It seems like with your version of Emacs, it should be nil. If it’s not, you may be getting the wrong colors. Regardless, try toggling it and let me know what happens.

Thanks.