Fix doom/toggle-line-numbers

This commit is contained in:
Henrik Lissner 2017-05-28 15:31:53 +02:00
parent 47afa2f51c
commit e2f06f0692

View file

@ -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))
(nlinum-mode (or arg (if nlinum-mode -1 +1))))
((featurep 'linum-mode)
(linum-mode arg))
(linum-mode (or arg (if linum-mode -1 +1))))
(t
(error "No line number plugin detected")))))
(error "No line number plugin detected"))))
;;;###autoload
(defun doom-resize-window (new-size &optional horizontal)