coldnew / linum-relative

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

How to use linum-format with linum-relative? #30

Closed krzysztof-magosa closed 8 years ago

krzysztof-magosa commented 8 years ago

Hi, I would like to use linum-relative, but there is one issue with it. When I set linum-format linum-relative stops working. Without setting format edited text is "glued" with line number.

coldnew commented 8 years ago

@krzysztof-magosa Can you give me more information? How do you set the linum-format ?

krzysztof-magosa commented 8 years ago

Hi @coldnew. I just use

(setq linum-format " %4d ")
krzysztof-magosa commented 8 years ago

https://asciinema.org/a/a4cudqza7rdmt9ruhyk1rfvhd

krzysztof-magosa commented 8 years ago

Nevermind. Looked into source, and set it via 'linum-relative-format'. Works great. Cheers.

(setq linum-relative-format "%3s ")