From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: Re: Disable line numbers in *shell* mode Date: Sat, 14 Sep 2013 08:02:44 +0800 Message-ID: References: <87li31speb.fsf@sperrhaken.name> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1379116972 17836 80.91.229.3 (14 Sep 2013 00:02:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Sep 2013 00:02:52 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 14 02:02:57 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VKdKC-0003Ku-Gn for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Sep 2013 02:02:56 +0200 Original-Received: from localhost ([::1]:51525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKdKC-0000qj-5Y for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 20:02:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKdK2-0000qd-09 for help-gnu-emacs@gnu.org; Fri, 13 Sep 2013 20:02:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKdK0-0004VJ-S0 for help-gnu-emacs@gnu.org; Fri, 13 Sep 2013 20:02:45 -0400 Original-Received: from mail-ie0-x22b.google.com ([2607:f8b0:4001:c03::22b]:62142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKdK0-0004U2-Mq for help-gnu-emacs@gnu.org; Fri, 13 Sep 2013 20:02:44 -0400 Original-Received: by mail-ie0-f171.google.com with SMTP id at1so4088158iec.30 for ; Fri, 13 Sep 2013 17:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kiyxo0WL7K92MPSjbQpJcvnAaBaFmXsiG6Ujxo3n62k=; b=FQDPiMaWpOxR9owEOpwshOxIsxRaJojPceh2xMy1WiuNiT4l6O8iWMJgQfmD1VLiMa wam8LkxSnm5aV8FomBRTrSm69KLJNH5FKk1H6h9keiWC+O73/67DvOZZ++PsvfsQrwCc a0/w+JmF/8nFFsPYabyndzFkJciJB3Yc5p+B4HHFJGP6GKGjV+7sT7YtpjO4XvjfSlzk rmRRI3uYEv0a/ZjOdxk+GzfAPQNHvPzfjNOF8hlOZHdHrnXUuPmzRYMa6ct9JRCwE6pL RTCAE0FMQWkoungdmtv6KJteiPTTkeLrqnGhYXcIA/YiRuTxW5b0WwTgPCgIS7VfZE2H GJ4Q== X-Received: by 10.50.6.106 with SMTP id z10mr2393925igz.9.1379116964075; Fri, 13 Sep 2013 17:02:44 -0700 (PDT) Original-Received: by 10.42.51.75 with HTTP; Fri, 13 Sep 2013 17:02:44 -0700 (PDT) In-Reply-To: <87li31speb.fsf@sperrhaken.name> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93391 Archived-At: On Fri, Sep 13, 2013 at 5:26 AM, Felix Dietrich wrote: > Scott Kinney 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/