[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should hl-line-mode be buffer-local?
From: |
Kevin A. Burton |
Subject: |
Re: Should hl-line-mode be buffer-local? |
Date: |
07 Nov 2001 11:09:33 -0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
"Stefan Monnier" <monnier+gnu/address@hidden> writes:
> > 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.
Ah... yes in my case it is definitely global :(
> (global-hl-line-mode 1)
> (add-hook 'eshell-mode-hook
> (lambda () (hl-line-mode -1)))
>
> Simon, could you look into it ?
<snip>
Kevin
- --
Kevin A. Burton ( address@hidden, address@hidden, address@hidden )
Location - San Francisco, CA, Cell - 415.595.9965
Jabber - address@hidden, Web - http://relativity.yi.org/
Learn from other people's mistakes, you don't have time to make your own.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
iD8DBQE76X33AwM6xb2dfE0RAr6RAJ9hZQ0HXLKsmKMowDYWQ3QRWx+BkwCdFfll
2urFG1m5l82jV2Y5gwBsH4k=
=01tS
-----END PGP SIGNATURE-----