unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xue Fuqiao <xfq.free@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Disable line numbers in *shell* mode
Date: Sat, 14 Sep 2013 08:02:44 +0800	[thread overview]
Message-ID: <CAAF+z6Gsp+56nHiCt2opb8zUc=xSDwyuT0Mr=a1-1jkxBsgOxw@mail.gmail.com> (raw)
In-Reply-To: <87li31speb.fsf@sperrhaken.name>

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	other threads:[~2013-09-14  0:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1875.1378962453.10748.help-gnu-emacs@gnu.org>
2013-09-12 21:26 ` Disable line numbers in *shell* mode Felix Dietrich
2013-09-14  0:02   ` Xue Fuqiao [this message]
2013-09-12  3:49 Scott Kinney
2013-09-12 13:42 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAF+z6Gsp+56nHiCt2opb8zUc=xSDwyuT0Mr=a1-1jkxBsgOxw@mail.gmail.com' \
    --to=xfq.free@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).