all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Possible to get line numbers?
@ 2005-03-29 21:47 JS
  2005-03-29 22:25 ` Pascal Bourguignon
  2005-03-29 23:23 ` Joe Corneli
  0 siblings, 2 replies; 9+ messages in thread
From: JS @ 2005-03-29 21:47 UTC (permalink / raw)


Is it possible to get line numbers in the left margin of emacs??

JS

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.580.1112137662.28103.help-gnu-emacs@gnu.org>]
* Re: Possible to get line numbers?
@ 2005-03-30 19:03 Ryan Bowman
  0 siblings, 0 replies; 9+ messages in thread
From: Ryan Bowman @ 2005-03-30 19:03 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-03-30 19:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 21:47 Possible to get line numbers? JS
2005-03-29 22:25 ` Pascal Bourguignon
2005-03-29 22:44   ` Drew Adams
2005-03-29 23:23 ` Joe Corneli
     [not found] <mailman.580.1112137662.28103.help-gnu-emacs@gnu.org>
2005-03-29 23:52 ` 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-30 19:03 Ryan Bowman

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.