refactor(functions): Use display-line-numbers instead of linum

This commit is contained in:
Vincent Ambo 2018-06-01 17:07:46 +02:00
parent 4fabc36172
commit 91dac5f692

View file

@ -59,16 +59,16 @@
(if (file-exists-p filename)
(load filename)))
;; These come from magnars, he's got some awesome things.
(defun goto-line-with-feedback ()
"Show line numbers temporarily, while prompting for the line number input"
(interactive)
(unwind-protect
(progn
(linum-mode 1)
(call-interactively 'goto-line))
(linum-mode -1)))
(setq-local display-line-numbers t)
(let ((target (read-number "Goto line: ")))
(avy-push-mark)
(goto-line target)))
(setq-local display-line-numbers nil)))
(defun untabify-buffer ()