This PR moves linum-c to line-numbers-c to make it more general-purpose, and extracts existing logic into a helper function before adding another helper method.
The new functionality on 26.1 is to disable global-linum-mode (probably not necessary) before enabling global-display-line-numbers-mode. Then, hooks are added to turn off display-line-numbers-mode on a few modes that don't seem to like it, such as dired-mode, git-commit-mode, magit-derived modes, and package-menu-mode.
Open to further requests or stylistic feedback. Otherwise, I would say ToT is ready to use in production.
This PR moves
linum-c
toline-numbers-c
to make it more general-purpose, and extracts existing logic into a helper function before adding another helper method.The new functionality on 26.1 is to disable
global-linum-mode
(probably not necessary) before enablingglobal-display-line-numbers-mode
. Then, hooks are added to turn offdisplay-line-numbers-mode
on a few modes that don't seem to like it, such asdired-mode
,git-commit-mode
,magit
-derived modes, andpackage-menu-mode
.Open to further requests or stylistic feedback. Otherwise, I would say ToT is ready to use in production.
Resolves #98.