<div>Previously the "wrong" cursor color remains even after having closed the other buffer, but anyways, it is working perfect now. As long as I'm getting the correct cursor color after the inactive buffer becomes active that should be more than enough and we shouldn't complain.</div>
<div><br></div><div><div>>>The cursor /type/ (box, hollow, bar, etc.), on the other hand,</div><div>>>is fully buffer-local.</div></div><div><br></div><div>Then should I be using "setq-default" instead of "setq"?</div>
<div><br></div><div>By the way, after a few days of using Evil I'm pretty happy with it. Evil appears to be "cleaner" and more elegant designed than Viper+Vimpulse, thanks a lot to your wonderful work Vegard, Frank, Nikolai and all the contributors.</div>
<div><br></div><div><br></div><div>York</div><div><br></div><div><br></div><div>On Wed, Aug 3, 2011 at 10:20 AM, Vegard �ye <<a href="mailto:vegard_oye@hotmail.com">vegard_oye@hotmail.com</a>> wrote:</div><div>On 2011-08-03 11:39 +0200, York Zhao wrote:</div>
<div><br></div><div>> I found that being able to set cursor color in different state is</div><div>> really useful, so I have the following to set my cursor color in</div><div>> emacs state:</div><div>></div><div>
> (setq evil-emacs-state-cursor '("red" box))</div><div>></div><div>> and it works, however, after I pressed "C-h k <key>" in emacs state</div><div>> the cursor color went back to black.</div>
<div><br></div><div>Emacs allows only one cursor color per "frame" (i.e., window), so the</div><div>best I can do is to ensure that the color is determined by the current</div><div>buffer (commit 03004f7). If you have two buffers open, then the</div>
<div>inactive buffer's cursor will also change color, unless you disable</div><div>inactive cursors altogether by setting `cursor-in-non-selected-windows'</div><div>to nil.</div><div><br></div><div>The cursor /type/ (box, hollow, bar, etc.), on the other hand,</div>
<div>is fully buffer-local.</div><div><br></div><div>--</div><div>Vegard</div><div><br></div><div>_______________________________________________</div><div>implementations-list mailing list</div><div><a href="mailto:implementations-list@lists.ourproject.org">implementations-list@lists.ourproject.org</a></div>
<div><a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list">https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list</a></div><div><br></div>