Use nlinum instead of linum

Supposedly it's faster. Also - use the actual global mode. :-)
This commit is contained in:
Bozhidar Batsov 2020-09-15 21:16:34 +03:00
parent 00288c7af0
commit e29042f369
3 changed files with 5 additions and 2 deletions

View file

@ -4,7 +4,7 @@
### New features
* Enable `linum-mode` by default. Can be disabled by setting `prelude-minimalistic-ui` to `nil`.
* Enable `nlinum-mode` by default. Can be disabled by setting `prelude-minimalistic-ui` to `nil`.
### Changes

View file

@ -75,6 +75,7 @@
projectile
magit
move-text
nlinum
operate-on-number
smartparens
smartrep

View file

@ -61,7 +61,9 @@
;; show line numbers at the beginning of each line
(unless prelude-minimalistic-ui
(linum-mode))
;; there's a built-in linum-mode, but we're using
;; nlinum-mode, as it's supposedly faster
(global-nlinum-mode t))
;; enable y/n answers
(fset 'yes-or-no-p 'y-or-n-p)