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

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

Re: Disable line numbers in *shell* mode


From: Xue Fuqiao
Subject: Re: Disable line numbers in *shell* mode
Date: Sat, 14 Sep 2013 08:02:44 +0800

On Fri, Sep 13, 2013 at 5:26 AM, Felix Dietrich
<felix.dietrich@sperrhaken.name> wrote:
> Scott Kinney <skinney620@yahoo.com> writes:
>
>> I have line numbers enabled and i like it
>> except in *shell* mode.
>>
>> it just wastes real estate.
>>
>> any ideas on how to disable line numbers in *shell* mode only?
>
> (add-hook 'shell-mode-hook (lambda ()
>                                                          (linum-mode -1)))
>
> Should hopefully do the trick.

True.  And I recommend you using nlinum in GNU ELPA (if you are not
using it now).  It is like linum-mode, but uses jit-lock to be more
efficient.

-- 
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/



reply via email to

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