From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Kliff Jochens Newsgroups: gmane.emacs.help Subject: Re: prefix line with number WAS: Are Windows-Emacs' scrollbars broken? Date: 13 Apr 2003 06:16:44 -0300 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1050225404.18297.4.camel@arcadia.localdomain> References: <445cd6bf.0304100110.360fdd1f@posting.google.com> <7263-Sat12Apr2003120721+0300-eliz@elta.co.il> <84u1d2rfif.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: Quoted-Printable X-Trace: main.gmane.org 1050226033 30610 80.91.224.249 (13 Apr 2003 09:27:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2003 09:27:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 13 11:27:10 2003 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 194dlW-0007xT-00 for ; Sun, 13 Apr 2003 11:27:10 +0200 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 194dlf-0008Lm-08 for gnu-help-gnu-emacs@m.gmane.org; Sun, 13 Apr 2003 05:27:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194dlP-0008Gm-00 for help-gnu-emacs@gnu.org; Sun, 13 Apr 2003 05:27:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194dlO-0008GL-00 for help-gnu-emacs@gnu.org; Sun, 13 Apr 2003 05:27:02 -0400 Original-Received: from sina.bol.com.br ([200.221.24.27]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194dlN-0008Fe-00 for help-gnu-emacs@gnu.org; Sun, 13 Apr 2003 05:27:02 -0400 Original-Received: from cm-net-poa-C8B0226B.brdterra.com.br (200.221.24.48) by sina.bol.com.br (5.1.071) id 3E7665FB007B0EA2 for help-gnu-emacs@gnu.org; Sun, 13 Apr 2003 06:26:59 -0300 Original-To: help-gnu-emacs@gnu.org In-Reply-To: <84u1d2rfif.fsf@lucy.is.informatik.uni-duisburg.de> X-Mailer: Ximian Evolution 1.2.0 X-Sender-IP: 200.176.34.107 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:8431 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8431 On Sun, 2003-04-13 at 05:03, Kai Gro=DFjohann wrote: > John Kliff Jochens writes: >=20 > > Now that you mentioned it, how can I have each line of the buffer > > prefixed with its number? All I managed to do was to show on the line > > with the file name (and etc), as well as the column, but I'd preffer = to > > have the line shown at the begginig of line. >=20 > There is a file setnu.el (or set-nu.el) floating about on the Net > somewhere. Thanks a lot. It worked just fine but, as I tried to do as indicated to have it working automatically (indicated on the .el file itself) [added to .emacs] (add-hook 'text-mode-hook 'turn-on-setnu-mode) I got the following error on running emacs: "Symbol's function definition is void: turn-on-setnu-mode" M-x turn-on-setnu-mode doesn't work neither. =20 As I'm no lisp connaisseur, I am a little lost :)=20 Can you help me find a workaround to get it working automatically? thanks inadvance. --=20 John Kliff Jochens