mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix doom/toggle-line-numbers
This commit is contained in:
@ -13,13 +13,12 @@
|
|||||||
(defun doom/toggle-line-numbers (&optional arg)
|
(defun doom/toggle-line-numbers (&optional arg)
|
||||||
"Toggle `linum-mode'."
|
"Toggle `linum-mode'."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(let ((arg (or arg (if linum-mode -1 +1))))
|
(cond ((featurep 'nlinum)
|
||||||
(cond ((featurep 'nlinum)
|
(nlinum-mode (or arg (if nlinum-mode -1 +1))))
|
||||||
(nlinum-mode arg))
|
((featurep 'linum-mode)
|
||||||
((featurep 'linum-mode)
|
(linum-mode (or arg (if linum-mode -1 +1))))
|
||||||
(linum-mode arg))
|
(t
|
||||||
(t
|
(error "No line number plugin detected"))))
|
||||||
(error "No line number plugin detected")))))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-resize-window (new-size &optional horizontal)
|
(defun doom-resize-window (new-size &optional horizontal)
|
||||||
|
Reference in New Issue
Block a user