On Tue, Mar 19, 2013 at 11:10 PM, Jai Dayal <dayals...@gmail.com> wrote:
> Hi,
>   I'm new to tmux and didn't see an obvious answer to this question.  When I
> use emacs inside of tmux, the font colors for emacs come out quite
> differently.  Is there any way to rectify this so there's no color change?

I have previously written a bit about this here:

    http://unix.stackexchange.com/a/55868/1107

Emacs has some defaults that change based on the TERM value. In
particular, default-frame-background-mode is "light" for xterm-like
values of TERM, but not for screen-like values (see normal-top-level
in startup.el). Also, older versions of Emacs do not know about all
the colors that that screen-like terminals support (especially
screen-256color; compare term/xterm.el with term/screen.el (if your
version of Emacs has the latter)). There may be other differences,
but these are the ones I have come across before.

To fix the former, you can customize frame-background-mode to
"light" (or dark) so that all your terminals get the same treatment.

For the latter, you need an updated term/screen.el. You can either
get it from the Emacs source repository, or use the customize
version that in my Gist at

    https://gist.github.com/ChrisJohnsen/03101250a0c5bcc05f00

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to