unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Relative line numbers (vim like)
@ 2016-11-18 21:11 Anast Gramm
  2016-11-19  2:33 ` Arun Isaac
  0 siblings, 1 reply; 2+ messages in thread
From: Anast Gramm @ 2016-11-18 21:11 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I was looking for a way to make linum mode like the relative numbers in
some vim videos I have seen, since it makes it very easy to do some stuff
really quick!

I found this (the first answer)
http://stackoverflow.com/questions/6874516/relative-line-numbers-in-emacs
and it pretty much works as expected, but I want one thing to change.
Instead of showing 0 at the current line I want to show the
actual line number.

I figured I could use what-line to get "Line %d" as a result
and then split it and the the 2nd half with the number and use this.

I don't know lisp, so I can't do this!

Any help would be appreciated!



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

end of thread, other threads:[~2016-11-19  2:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 21:11 Relative line numbers (vim like) Anast Gramm
2016-11-19  2:33 ` Arun Isaac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).