disabling global-hl-mode in visual-mode

Titus von der Malsburg malsburg at gmail.com
Fri Jun 17 22:02:16 CEST 2011


Can't you modify the functions that turn hl-line-mode on and off to
check what the current mode is and if it's included in your list of
modes for which you don't want hl-line-mode?  I'm thinking of
something like this:

(add-hook 'viper-vi-state-hook
          (lambda () (if (not (memq major-mode '(emacs-lisp-mode)))
                         (hl-line-mode 1))))

On Fri, Jun 17, 2011 at 9:16 PM, Thomas Hisch <t.hisch at gmail.com> wrote:
> yes that works! ( (interactive) is not needed there )
> The problem is still that i have some modes, in which hl-mode is disabled by



More information about the implementations-list mailing list