Re: Having the row and column numbers in the modeline

[email protected]
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Heime <[email protected]> writes:

> How can I get the row and column number in the modeline
> using elips code?
>
>
>

The commands ‘line-number-mode’ and ‘column-number-mode’
will add the display of the current row and column to the
mode line, displayed as

   (row,column)

So, the Emacs Lisp code is:

   (line-number-mode)
   (column-number-mode)

or,

   (progn
     (line-number-mode)
     (column-number-mode))

See also the Emacs menu: Options → Show/Hide 
                           → Line Numbers in Mode Line
                           → Column Numbers in Mode Line

-- 
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.