coldnew / linum-relative

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

Space between the number and the code #7

Closed vimeitor closed 9 years ago

vimeitor commented 10 years ago

Hello,

Pardon my ignorance. How can I add an space between the line number and the code? I tried doing something like the following:

(defvar relative-linum-format-string "%3d ")

but it doesn't work. If you leave an space after the d when in emacs linum, it works, but then I don't get the relative numbers.

Thank you,

Adria

coldnew commented 10 years ago

You can try following code after (require 'linum-relative) (setq linum-relative-format "%3s ")

vimeitor commented 10 years ago

Thank you for anwering.

Unfortunately, it doesn't work on the terminal :/

I guess it's not possible. I've tried a lot of things and none seem to work.

coldnew commented 10 years ago

2014-03-25 9 30 03 Hi, does this what you want ? I think my code can work. Note: the 'i' char is make sure the space can really show on fringe.

vimeitor commented 10 years ago

Hello!,

Yes, this is pretty much what I was looking for :)

Thank you for taking your time to look for a solution. I appreciate it!