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

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

Re: Does Emacs have a line-number function or is %l the only equivalent?


From: Christian Seberino
Subject: Re: Does Emacs have a line-number function or is %l the only equivalent?
Date: 14 Jan 2004 19:45:23 -0800

gebser

I just wanted a function that returned the line number of
current point that I could use anywhere.

I need a function like %l I can use to return a number


e.g. (line-number)

Chris

P.S. I just want to replace %l with something clearer
in my .emacs.  That's all.

gebser@speakeasy.net wrote in message 
news:<mailman.651.1074102458.928.help-gnu-emacs@gnu.org>...
> Having
> 
> (setq-default line-number-mode t)
> 
> puts the number of the current line (the one the cursor is on) in the 
> modeline.  Is that the sort of "function" you're referring to?
> 
> 
> Name withheld because it's too much to type.
> 
> 
> At 20:42 (UTC+0100) on Mon, 12 Jan 2004 Henrik Enberg said:
> 
> = seberino@spawar.navy.mil (Christian Seberino) writes:
> = 
> = > Does Emacs have a line-number function or is %l the only equivalent?
> = 
> = There is setnu.el, but it only works so so, I recall.
> = 
> = <http://www.wonderworks.com/download/setnu.el>
> = _______________________________________________
> = Help-gnu-emacs mailing list
> = Help-gnu-emacs@gnu.org
> = http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> =


reply via email to

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