From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Lewis Newsgroups: gmane.emacs.help Subject: Re: line numbers Date: Wed, 08 Jan 2003 21:18:30 -0800 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042090472 14960 80.91.224.249 (9 Jan 2003 05:34:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2003 05:34:32 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WVKo-0003t9-00 for ; Thu, 09 Jan 2003 06:34:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WVHB-0003Np-04 for gnu-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2003 00:30:45 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.bredband.com!bredband!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: css.css.sfu.ca Original-X-Trace: quimby.gnus.org 1042089778 21097 199.60.1.20 (9 Jan 2003 05:22:58 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 9 Jan 2003 05:22:58 GMT X-Attribution: Benjamin Lewis X-Yow: WHOA!! I'm having a RELIGIOUS EXPERIENCE right NOW!! User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.1 (sparc-sun-solaris2.8) Cancel-Lock: sha1:4P5bkbkfJdOTO6LdJjnZ8I08Y54= Original-Xref: shelby.stanford.edu gnu.emacs.help:108759 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5288 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5288 Matthew Low wrote: > On Tue, 7 Jan 2003, Benjamin Lewis wrote: > >> Matthew Low wrote: >> >>> I'm using Emacs 21.2.1. Is there any way to display line numbers on the >>> screen as you are typing? >> >> Yes: >> >> http://www.emacswiki.org/cgi-bin/wiki.pl?LineNumbers >> >> I'm curious why you want this, though. I've noticed a number of people >> asking about this, and can't see where it would be useful, given some of >> emacs' other features. > > I meant to show line numbers for every line on display, for example down > the left margin of the screen. I'll implement this program as soon as I > learn to use .el files. Thanks a lot. That's what I thought you meant. You don't have to do anything fancy; just put the file setnu.el somewhere in your load path, and do M-x setnu-mode. Actually, you probably also need a (require 'setnu) in your .emacs file. -- Benjamin Lewis Although the moon is smaller than the earth, it is farther away.