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 <malsburg@gmail.com> 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
implementations-list@lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list