help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to get line numbers?


From: Mathias Dahl
Subject: Re: Possible to get line numbers?
Date: Wed, 30 Mar 2005 13:38:35 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt)

JS <d44sf@44ada.com> writes:

>>> But what am I supposed to do with it? I am just starting to use emacs.
>> 
>> Put the file in your somewhere in your load-path (to see which
>> directories are in the load-path, do C-h v load-path RET),
>
>
> When I do that I get a list of maybe 15 diretories! Should I just put in one
> of them?

Yes, basically, any will do.

>> then add 
>> the following to your .emacs file:
>> 
>> (require 'setnu)
>> 
>> Now, when you want line numbers do M-x setnu-mode RET
>
> 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)

And then you only need to press C-c l to toggle this mode.

/Mathias


reply via email to

[Prev in Thread] Current Thread [Next in Thread]