<div>Previously the &quot;wrong&quot; cursor color remains even after having closed the other buffer, but anyways, it is working perfect now. As long as I&#39;m getting the correct cursor color after the inactive buffer becomes active that should be more than enough and we shouldn&#39;t complain.</div>
<div><br></div><div><div>&gt;&gt;The cursor /type/ (box, hollow, bar, etc.), on the other hand,</div><div>&gt;&gt;is fully buffer-local.</div></div><div><br></div><div>Then should I be using &quot;setq-default&quot; instead of &quot;setq&quot;?</div>
<div><br></div><div>By the way, after a few days of using Evil I&#39;m pretty happy with it. Evil appears to be &quot;cleaner&quot; 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 &lt;<a href="mailto:vegard_oye@hotmail.com">vegard_oye@hotmail.com</a>&gt; wrote:</div><div>On 2011-08-03 11:39 +0200, York Zhao wrote:</div>
<div><br></div><div>&gt; I found that being able to set cursor color in different state is</div><div>&gt; really useful, so I have the following to set my cursor color in</div><div>&gt; emacs state:</div><div>&gt;</div><div>
&gt; (setq evil-emacs-state-cursor &#39;(&quot;red&quot; box))</div><div>&gt;</div><div>&gt; and it works, however, after I pressed &quot;C-h k &lt;key&gt;&quot; in emacs state</div><div>&gt; the cursor color went back to black.</div>
<div><br></div><div>Emacs allows only one cursor color per &quot;frame&quot; (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&#39;s cursor will also change color, unless you disable</div><div>inactive cursors altogether by setting `cursor-in-non-selected-windows&#39;</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>