disabling global-hl-mode in visual-mode

Thomas Hisch t.hisch at gmail.com
Fri Jun 17 21:16:40 CEST 2011

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 ?


On Fri, Jun 17, 2011 at 8:43 PM, Titus von der Malsburg
<malsburg at 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 at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/implementations-list/attachments/20110617/58ce42fa/attachment.htm 

More information about the implementations-list mailing list