Sunday, 8 September 2019

Solarized background colour off in emacs under tmux


Exhibit I: plain Emacs.


Plain Emacs.


Exhibit II: Emacs under tmux.


Emacs under tmux.


The shades of colours are different, and importantly, the background colour differentiation is nil (e.g. look at the top menu). Anyone run into this?


I'm running tmux as tmux -2, $TERM in tmux is screen-256color, I'm using color-theme-solarized dark in Emacs, and Solarized for iTerm2 … a bit baffled!



Answer



I was having the same issue in Vim. Using the following in my ~/.tmux.conf worked for me after creating a new tmux session:


set -g default-terminal "screen-256color"


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...