yes that works! ( (interactive) is not needed there )

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
"mode-local" - don't know if this exists in elisp) variable and only turn
hl-line-mode on if this var is non nil. Better ideas ?

Thomas

On Fri, Jun 17, 2011 at 8:43 PM, Titus von der Malsburg
<[email protected]>wrote:

> What's wrong with this solution:
>
> (add-hook 'vimpulse-visual-state-hook (lambda () (interactive)
> (hl-line-mode)))
> (add-hook 'viper-vi-state-hook (lambda () (interactive) (hl-line-mode 1)))
>
>
>  Titus
>
> _______________________________________________
> implementations-list mailing list
> [email protected]
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
>
_______________________________________________
implementations-list mailing list
[email protected]
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list

Reply via email to