Replace nlinum with linum

This commit is contained in:
Henrik Lissner 2017-05-13 22:39:50 +02:00
parent 7713cdb0bd
commit 5491fd552e
7 changed files with 19 additions and 36 deletions

View file

@ -200,7 +200,7 @@ for function signatures or notes. Run again to clear the header line."
(interactive "r")
(setq header-line-format
(when mark-active
(concat (propertize (format nlinum-format (line-number-at-pos beg))
(concat (propertize (format linum-format (line-number-at-pos beg))
'face 'font-lock-comment-face)
(let ((content (buffer-substring beg end)))
(setq content (replace-regexp-in-string "\n" " " content t t))

View file

@ -10,10 +10,10 @@
'fullboth)))
;;;###autoload
(defun doom/toggle-line-numbers ()
"Toggle `nlinum-mode'."
(interactive)
(nlinum-mode (if nlinum-mode -1 +1)))
(defun doom/toggle-line-numbers (&optional arg)
"Toggle `linum-mode'."
(interactive "P")
(linum-mode (or arg (if linum-mode -1 +1))))
;;;###autoload
(defun doom/window-zoom ()