From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Bowman Newsgroups: gmane.emacs.help Subject: Re: Possible to get line numbers? Date: Wed, 30 Mar 2005 11:03:53 -0800 (PST) Message-ID: <20050330190354.24040.qmail@web51907.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112210143 10018 80.91.229.2 (30 Mar 2005 19:15:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2005 19:15:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 30 21:15:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGidt-0007rR-Fe for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Mar 2005 21:14:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGiuR-0007vD-IV for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Mar 2005 14:31:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGima-0001oy-4v for help-gnu-emacs@gnu.org; Wed, 30 Mar 2005 14:23:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGimJ-0001fp-3d for help-gnu-emacs@gnu.org; Wed, 30 Mar 2005 14:23:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGimF-0001dk-WC for help-gnu-emacs@gnu.org; Wed, 30 Mar 2005 14:22:56 -0500 Original-Received: from [206.190.39.50] (helo=web51907.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1DGiTq-0006qf-LM for help-gnu-emacs@gnu.org; Wed, 30 Mar 2005 14:03:54 -0500 Original-Received: (qmail 24044 invoked by uid 60001); 30 Mar 2005 19:03:54 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=AYQPswIdEx3Y8zP7ksMUmU7XfQdC3Io2GErA6zG03fUH9U2ndGXTJpijf4aZaLZ/eyqZsFCkB5SuL0QavvFDy/Nzjy/t0Mvt8Q4YZMiytu/TIKyk2N+jYrwxqVnu9EX23NbJvpuxy8lvU7z/YHJ29A3fbosu4JkoJqme3nECOzw= ; Original-Received: from [208.11.76.5] by web51907.mail.yahoo.com via HTTP; Wed, 30 Mar 2005 11:03:53 PST Original-To: help-gnu-emacs@gnu.org In-Reply-To: 6667 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25304 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25304 > > I could be nice that the linenumbers are visible > each time I start emacs, is that possible? > > Not with this mode because it has to be enabled in > each buffer, when you need it. I suggest you bind it to some key: > > (global-set-key "\C-cl" 'setnu-mode) > Or you can add to to a hook for whichever modes you want it enabled, i.e. placing in your .emacs file (add-hook 'java-mode-hook '(lambda () (setnu-mode t)) will turn on line numbers for any buffer that uses java-mode. ---- Ryan Bowman That stupid bird stole my quarter. I hate birds. - Eddie ---- __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com