Fix doom/toggle-line-numbers
This commit is contained in:
parent
47afa2f51c
commit
e2f06f0692
1 changed files with 6 additions and 7 deletions
|
@ -13,13 +13,12 @@
|
|||
(defun doom/toggle-line-numbers (&optional arg)
|
||||
"Toggle `linum-mode'."
|
||||
(interactive "P")
|
||||
(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")))))
|
||||
(cond ((featurep 'nlinum)
|
||||
(nlinum-mode (or arg (if nlinum-mode -1 +1))))
|
||||
((featurep 'linum-mode)
|
||||
(linum-mode (or arg (if linum-mode -1 +1))))
|
||||
(t
|
||||
(error "No line number plugin detected"))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-resize-window (new-size &optional horizontal)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue