zinking
zinking

Reputation: 5685

how to make EMACS evil-mode display line numbers

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 ?

Upvotes: 3

Views: 3214

Answers (2)

Daoist Paul
Daoist Paul

Reputation: 161

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

Evil emacs mode gives unexpected behavior with :set nu.

Upvotes: 3

phils
phils

Reputation: 73274

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) ?

Upvotes: 2

Related Questions