Skip to content
Compare
Choose a tag to compare
@coldnew coldnew released this 24 Jan 10:42
· 4 commits to master since this release

Add display-line-numbers-mode backend support for linum-relative-mode

Since version 0.6, if user's emacs version is greater than 26.0.50, they can use display-line-numbers-mode to replace linum-mode.

In this version, I implement a backend to make linum-relative can also use display-line-numbers-mode as backend, just add following code in ~/.emacs.d

;; Use `display-line-number-mode' as linum-mode's backend for smooth performance
(setq linum-relative-backend 'display-line-numbers-mode)

Though some feature in linum-relative is missing in this backend, user now can has smooth performance on open large file :)