coldnew / linum-relative

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

Command to turn on (and off) linum-relative #15

Closed joonro closed 9 years ago

joonro commented 9 years ago

Hi,

I'm using Evil mode and I want to turn on linum-relative when I'm in the normal state, and turn it off wen I'm in the insert state. I'm using linum-relative-toggle as a hook, but it does not work precisely. Could you please provide linum-relative-on and linum-relative-offso I can turn it on/off without ambiguity?

Thank you so much!

coldnew commented 9 years ago

is commit b4162ba what yout want ?

joonro commented 9 years ago

Thank you so much for the quick reply. It is, but I think linum-relative-on should check if (eq linum-format 'linum-relative) first - a user can do linum-relative-on while linum-format is linum-relative and that will (setq linum-format 'linum-relative).

coldnew commented 9 years ago

Fixes in f205dba Thanks :)