help-gnu-emacs
[Top][All Lists]
Advanced

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

disable linum-mode in other buffers, like eshell, compilation


From: z.cHris
Subject: disable linum-mode in other buffers, like eshell, compilation
Date: Wed, 08 Dec 2010 15:18:33 -0000
User-agent: G2/1.0

Hi,

I use linum-mode almost all the time, so i use (global-linum-mode t),
but i don't want to use it in eshell mode, compilation mode, etc. in
which the line number is useless.

And also, when i use linum-mode in eshell or compilation mode, if a
long line is printed, the cursor is paused in first lines, never
scroll screen to the end of that line.

I use
(add-hook 'eshell-mode-hook
  '(lambda () (linum-mode nil)))

but can't work, is anyone know how to solve this problem?

Thanks for your time.

br,
Chris


reply via email to

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