Cursor color in "Emacs state" not persistent

Vegard Øye vegard_oye at hotmail.com
Wed Aug 3 16:20:28 CEST 2011


On 2011-08-03 11:39 +0200, York Zhao wrote:

> I found that being able to set cursor color in different state is
> really useful, so I have the following to set my cursor color in
> emacs state:
>
> (setq evil-emacs-state-cursor '("red" box))
>
> and it works, however, after I pressed "C-h k <key>" in emacs state
> the cursor color went back to black.

Emacs allows only one cursor color per "frame" (i.e., window), so the
best I can do is to ensure that the color is determined by the current
buffer (commit 03004f7). If you have two buffers open, then the
inactive buffer's cursor will also change color, unless you disable
inactive cursors altogether by setting `cursor-in-non-selected-windows'
to nil.

The cursor /type/ (box, hollow, bar, etc.), on the other hand,
is fully buffer-local.

-- 
Vegard



More information about the implementations-list mailing list