Replace nlinum with linum
This commit is contained in:
parent
7713cdb0bd
commit
5491fd552e
7 changed files with 19 additions and 36 deletions
|
@ -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))
|
||||
|
|
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue