coldnew / linum-relative

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

linum-relative-current-symbol should not be displayed in Evil mode in command-line #38

Closed chumakd closed 7 years ago

chumakd commented 7 years ago

Evil mode emulates Vim command line feature (accessible by : key). If linum-relative-global-mode mode is enabled, the linum-relative-current-symbol (defaults to 0) is displayed when command-line is active.

screen shot 2017-01-19 at 12 05 58 pm
coldnew commented 7 years ago

Not sure what happend :(

Since linum-relative is based on linum-mode, can you make sure linum-mode won't display on minibuffer ?

screen shot 2017-01-19 at 1 38 49 pm
chumakd commented 7 years ago

Thanks for the tip. After adding (add-hook 'minibuffer-setup-hook (lambda () (linum-mode 0))) the issue has gone.

coldnew commented 7 years ago

Since linum-mode will make emacs slow on large file, it's more recommend to use linum-off with any linum-mode based plugins.

linum-off will disable linum-mode on the minibuffer by default.