coldnew / linum-relative

display relative line number in the left margin in emacs
169 stars 20 forks source link

Hybrid numbering #5

Closed v-yarotsky closed 10 years ago

v-yarotsky commented 10 years ago

It would be a nice-to-have feature if linum-relative could mimic vim's 'hybryd' line numbering. Basically, it's same as relative numbering, but for current line it's absolute number is shown.

v-yarotsky commented 10 years ago

Sorry, did not read through the source :)

For those who is interested, it can be done like this:

;; Show absolute line number for current line
(defvar linum-relative-current-symbol "")
(require 'linum-relative)

Thanks for this awesomeness :)