mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
Bring back nlinum
linum-mode *really* slows down buffers when they're displayed in more than one window. This lag isn't present in nlinum. nlinum isn't perfect either but... lesser of two evils. This includes advisors and an ESC hook to mitigate the issue of disappearing nlinum line numbers.
This commit is contained in:
@@ -13,7 +13,13 @@
|
||||
(defun doom/toggle-line-numbers (&optional arg)
|
||||
"Toggle `linum-mode'."
|
||||
(interactive "P")
|
||||
(linum-mode (or arg (if linum-mode -1 +1))))
|
||||
(let ((arg (or arg (if linum-mode -1 +1))))
|
||||
(cond ((featurep 'nlinum)
|
||||
(nlinum-mode arg))
|
||||
((featurep 'linum-mode)
|
||||
(linum-mode arg))
|
||||
(t
|
||||
(error "No line number plugin detected")))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-resize-window (new-size &optional horizontal)
|
||||
|
Reference in New Issue
Block a user