emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should hl-line-mode be buffer-local?


From: Stefan Monnier
Subject: Re: Should hl-line-mode be buffer-local?
Date: Wed, 07 Nov 2001 09:51:04 -0500

> I want to disable the hl-line-mode for *eshell* buffers but enable it for
> all other buffers.
> 
> The only problem is that hl-line-mode is global by default.

If it is, it's a bug.  `hl-line-mode' should be local while
`global-hl-line-mode' is the one that's global.  The following
code *should* do what you want, but it seems from what you say
that it doesn't.

  (global-hl-line-mode 1)
  (add-hook 'eshell-mode-hook
            (lambda () (hl-line-mode -1)))

Simon, could you look into it ?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]