defuns-nlinum: use bound-and-true-p on 'nlinum-mode
This commit is contained in:
parent
cbb81957f2
commit
fac805e6a3
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun narf/nlinum-toggle ()
|
(defun narf/nlinum-toggle ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(if nlinum-mode
|
(if (bound-and-true-p nlinum-mode)
|
||||||
(narf|nlinum-disable)
|
(narf|nlinum-disable)
|
||||||
(narf|nlinum-enable)))
|
(narf|nlinum-enable)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue