From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: line numbers Date: Sun, 3 Jun 2012 23:57:33 -0600 Message-ID: <20120604055733.GA27887@discord.proulx.com> References: <20120603181838.GA2517@mark-laptop> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1338789469 18065 80.91.229.3 (4 Jun 2012 05:57:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2012 05:57:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrew Michael Levin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 04 07:57:47 2012 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 1SbQIU-0002DY-Ce for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2012 07:57:46 +0200 Original-Received: from localhost ([::1]:41586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbQIU-0007vI-3C for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2012 01:57:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbQIN-0007v0-92 for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 01:57:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbQIL-0006bX-9Y for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 01:57:38 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:59898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbQIL-0006bL-2M for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 01:57:37 -0400 Original-Received: from discord.proulx.com (discord.proulx.com [172.27.61.2]) (Authenticated sender: discord) by joseki.proulx.com (Postfix) with ESMTPA id 02701211D6; Sun, 3 Jun 2012 23:57:34 -0600 (MDT) Original-Received: by discord.proulx.com (Postfix, from userid 1000) id 7174690C06F; Sun, 3 Jun 2012 23:57:33 -0600 (MDT) Mail-Followup-To: Bob Proulx , Andrew Michael Levin , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.17.153.58 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:85094 Archived-At: Andrew Michael Levin wrote: > Mark Skilbeck wrote: > > Adding to the previous reply suggesting line-number-mode, there are > > also packages that show line-numbers *in the buffer* to which people > > coming from outside Emacs are familiar. Depending on your Emacs > > version, you may have the Linum package already installed. If so, M-x > > linum-mode will interest you. Otherwise, you can find it on the > > internet[1]. > > So, what does > > (line-number-mode t) ; show line numbers > > do exactly? I added this to my .emacs and I don't see any change even > after I opened a new emacs session in a new terminal. You were asking for line numbers in the buffer so confusingly for you line-number-mode is not what you want. Mark suggested linum-mode not line-number-mode. line-number-mode != linum-mode line-number-mode turns on and off display of the line number in the mode line bar at the bottom of screen. The linum-mode package is something different. If you don't have it available you can load it like this: $ wget http://web.student.tuwien.ac.at/~e0225855/linum/linum.el Then load it into emacs: M-x load-file linum.el Then activate it: M-x linum-mode > > That said, I personally find the line-numbers along the left of a > > buffer somewhat intrusive and unnecessary. The line-number shown in > > the status area suffices and doesn't take up my precious screen space! Agreed. Since emacs doesn't rely upon line numbers the same way that vi/ed did there isn't much attraction to have them visible all of the time. I find them distracting. The line number in the mode line is good for me. Bob