Listing line numbers

Listing line numbers

Post by B.May » Fri, 25 Nov 1994 03:15:14




: The other thing is how do I list the current line number
: as I edit a file.

Try C-x l

'Page has NNN lines (YYY + ZZZ)'

The display seems to indicate YYY lines before the cursor, ZZZ after.
Therefore, current position is YYY + 1...

I used C-x = in another life on Multics, but that displays some stuff
about the current character and your position relative to total chars
in xemacs.

--
Brian R. Mayer                               Product & Manufacturing Systems

 
 
 

Listing line numbers

Post by Damon Lipparel » Fri, 25 Nov 1994 14:22:11


    >   Hi

    >       I am using Gnu XEmacs 19.11 Lucid. In vi editor I can use
    > option " : set nu " to list a number for each line of a file being
    > edited. How do I do the same thing here. The other thing is how do I
    > list the current line number as I edit a file.

"C-u 1 M-x line-number-mode" will display the current line number in the
modeline.

Hope this helps,
-lipp

---

TAILFINS!!  ...click...

 
 
 

Listing line numbers

Post by Peter Pezaris 896-61 » Sat, 26 Nov 1994 14:18:03


|>   Hi
|>
|>       I am using Gnu XEmacs 19.11 Lucid. In vi editor I can use option
|>        " : set nu " to list a number for each line of a file being edited. How do I do the
|>       same thing here. The other thing is how do I list the current line number
|>       as I edit a file.
|>
|>    Thanks
|>     Randi

There is a setnu-mode.el package that will do exactly what you want.  It comes
with the 19.11 distribution, but if for some reason you don't have it you can
email me and I'll send it to you.  Try:

M-x load-library RET setnu-mode RET M-x setnu-mode RET

Cheers,
Peter

 
 
 

Listing line numbers

Post by Mikael Lindstrom LL/NU 34 » Sat, 26 Nov 1994 18:39:40



|>
|>
|>   Hi
|>
|>       I am using Gnu XEmacs 19.11 Lucid. In vi editor I can use option
|>        " : set nu " to list a number for each line of a file being edited. How do I do the
|>       same thing here. The other thing is how do I list the current line number
|>       as I edit a file.
|>
|>    Thanks
|>     Randi
|>
|>

It's not exactly what you ask for, but if you set the line-number-mode variable,
the current line number is shown in the mode line. It's updated automatically when
you move the cursor.

/Mikael

--
# Mikael Lindstr?m    LL/NU                     # Who cares about  
# Ericsson Telecom AB, Karlstad, Sweden         #    assembler

# Smail: Lagergrens gata 8, S-652 26 KARLSTAD   #     PLEX...
# Phone: +46 54 19 34 54 , Fax: +46 54 19 34 89 #

 
 
 

Listing line numbers

Post by Randip Singh - Gateway Developme » Fri, 25 Nov 1994 01:30:09


  Hi

      I am using Gnu XEmacs 19.11 Lucid. In vi editor I can use option
       " : set nu " to list a number for each line of a file being edited. How do I do the
      same thing here. The other thing is how do I list the current line number
      as I edit a file.

   Thanks
    Randi

 
 
 

1. Column Numbers (Not Line Numbers)

Has anyone created a minor mode (or some other function) that shows
column numbers while typing keys?  If not, can someone tell me if
there is some hook or other easy way to modify the mode line after
every keystroke that moves the point (including all self-insert-command
keys)?

At times, we enter data with Emacs.  Since our stats packages read the
data with a fixed format, column numbers are very important.  The
values for item X, say, must always go into the same column on each
line.  Typing `C-x =' every few seconds gets old very quick.  

I don't really care about what line I'm on; that's a nonissue for us.
This being the case, column numbers should take considerably less
effort than determining the line number.  That is, efficiency should
not play as large a role.  The length of a file, it seems, depends
more often on the number of lines than number of columns in a
particular line.

If someone has done this, great.  If not I would even appreciate
hints.  Lisp programming doesn't bother me, but I'm not sure how to
efficiently attach a command to most every keystroke.

Thanks in advance.

-keith
 _______________________________________________________________________
                                                               _    _
 o r e g o n  r e s e a r c h  i n s t i t u t e              ( )  |<  |
 _______________________________________________

 e u g e n e  o r e g o n
 ________________________

2. Users experiences with NT Firewalls

3. Line number works; how about column number?

4. Is it right to use GROUP BY in this situation.

5. Column Number , Line Number

6. IIgs music CD... soon!

7. Display line number in status line

8. 100Mbit Client 32 2.5

9. How can I display line number in the front of each line

10. Line numbers and end of line marker

11. line number before every line

12. Line numbers. Numberd lines in buffer display

13. Line numbers on Mode Line