all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ryan Bowman <ryanlbowman@yahoo.com>
Subject: Re: Possible to get line numbers?
Date: Wed, 30 Mar 2005 11:03:53 -0800 (PST)	[thread overview]
Message-ID: <20050330190354.24040.qmail@web51907.mail.yahoo.com> (raw)
In-Reply-To: 6667


> > 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 

             reply	other threads:[~2005-03-30 19:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30 19:03 Ryan Bowman [this message]
     [not found] <mailman.580.1112137662.28103.help-gnu-emacs@gnu.org>
2005-03-29 23:52 ` Possible to get line numbers? JS
2005-03-30  7:26   ` Mathias Dahl
2005-03-30  9:50     ` JS
2005-03-30 11:38       ` Mathias Dahl
  -- strict thread matches above, loose matches on Subject: below --
2005-03-29 21:47 JS
2005-03-29 22:25 ` Pascal Bourguignon
2005-03-29 22:44   ` Drew Adams
2005-03-29 23:23 ` Joe Corneli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050330190354.24040.qmail@web51907.mail.yahoo.com \
    --to=ryanlbowman@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.