all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.