Question

I work with evil-mode under Emacs so I encounter this issue that Emacs display line numbers for some mode but not for other mode, when I try to toggle linenumber-mode explicitly it tells me this mode has been disabled.

is there a way to make evil-mode display line numbers ?

Was it helpful?

Solution

line-number-mode is enabled by default, and Evil does not appear to change that.

To clarify, you are definitely talking about displaying the current line number in the mode line, and not showing all visible line numbers in the fringe (which is handled by linum-mode) ?

OTHER TIPS

Try M-x-display-line-number-mode

Evil emacs mode gives unexpected behavior with :set nu.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top