bbatsov / zenburn-emacs

The Zenburn colour theme ported to Emacs
GNU General Public License v3.0
1.01k stars 267 forks source link

cursor color emacsclient #156

Open KaiSteinert opened 10 years ago

KaiSteinert commented 10 years ago

When I start emacs with just the "emacs" command everything looks good, but when I "emacs --daemon" and "emacsclient -c" the cursor is very dark just a little bit more then the background, which I find very annoying.

Any ideas?

Thanks in advance

BobPortmann commented 10 years ago

I had the opposite problem, cursor was setup correctly only when starting from emacs --daemon. I tracked it down to viper-mode, which also sets the cursor color by default. If I (load-theme 'zenburn t) before I (require 'viper) then everything seems to work.

Hope this will help someone...

matklad commented 9 years ago

@KaiSteinert this thing have been driving me crazy for about a year, and now I finally fixed it !!! \o/

TL;DR: try adding (setq inhibit-x-resources 't) to init.el

The problem in my case was that emacs daemon used settings from Xresources (although I don't have a ~/.Xresources file).

One way to diagnose a problem is to do list-face-display, find cursor face and see if it is Change outside customize

I found the answer here: http://emacs.stackexchange.com/questions/13291/emacs-cursor-color-is-different-in-daemon-and-non-daemon-modes