Thanks Vegard<div><br></div><div>York<br><br><div class="gmail_quote">On Thu, Aug 4, 2011 at 8:40 AM, Vegard Øye <span dir="ltr">&lt;<a href="mailto:vegard_oye@hotmail.com">vegard_oye@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 2011-08-03 18:11 +0200, York Zhao wrote:<br>
<div class="im"><br>
&gt; On Wed, Aug 3, 2011 at 10:20 AM, Vegard Øye wrote:<br>
&gt;<br>
&gt;&gt; The cursor /type/ (box, hollow, bar, etc.), on the other hand,<br>
&gt;&gt; is fully buffer-local.<br>
&gt;<br>
&gt; Then should I be using &quot;setq-default&quot; instead of &quot;setq&quot;?<br>
<br>
</div>The variable `evil-emacs-state-cursor&#39; is not buffer-local, so you<br>
should just use `setq&#39;. The underlying variable which Evil modifies,<br>
`cursor-type&#39;, is buffer-local, which is what enables Emacs to<br>
simultaneously display different cursors in buffers that are in<br>
different states.<br>
<br>
This is only an issue because of the `cursor-in-non-selected-windows&#39;<br>
setting. If it is nil, then only one cursor is displayed at any time,<br>
and it doesn&#39;t matter if the underlying variables are buffer-local<br>
or not.<br>
<br>
Unfortunately, it is not possible to change the cursor color when<br>
running Emacs in the terminal (which is where it would be really<br>
useful, since the cursor type is always a box). Or rather, according<br>
to my tests, it /is/ possible to change both the cursor type and color<br>
when running Emacs in a terminal on Windows, but it is impossible to<br>
change either when running in a terminal -- any terminal -- on<br>
Ubuntu Linux. :/<br>
<div class="im"><br>
&gt; By the way, after a few days of using Evil I&#39;m pretty happy with it.<br>
&gt; Evil appears to be &quot;cleaner&quot; and more elegant designed than<br>
&gt; Viper+Vimpulse, thanks a lot to your wonderful work Vegard, Frank,<br>
&gt; Nikolai and all the contributors.<br>
<br>
</div>You&#39;re welcome!<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Vegard<br>
<br>
_______________________________________________<br>
implementations-list mailing list<br>
<a href="mailto:implementations-list@lists.ourproject.org">implementations-list@lists.ourproject.org</a><br>
<a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list</a><br>
</div></div></blockquote></div><br></div>