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)
|
(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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue