yes that works! ( (interactive) is not needed there )<div><br></div><div>The problem is still that i have some modes, in which hl-mode is disabled by default, which means that i have to introduce a buffer local (or &quot;mode-local&quot; - don&#39;t know if this exists in elisp) variable and only turn hl-line-mode on if this var is non nil. Better ideas ?</div>
<div><br></div><div>Thomas<br><br><div class="gmail_quote">On Fri, Jun 17, 2011 at 8:43 PM, Titus von der Malsburg <span dir="ltr">&lt;<a href="mailto:malsburg@gmail.com">malsburg@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
What&#39;s wrong with this solution:<br>
<br>
(add-hook &#39;vimpulse-visual-state-hook (lambda () (interactive) (hl-line-mode)))<br>
(add-hook &#39;viper-vi-state-hook (lambda () (interactive) (hl-line-mode 1)))<br>
<font color="#888888"><br>
<br>
  Titus<br>
</font><div><div></div><div class="h5"><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>