about summary refs log tree commit diff
path: root/init/functions.el
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-06-01T15·07+0200
committerVincent Ambo <mail@tazj.in>2018-06-01T15·07+0200
commit91dac5f692d022bcc66758a5678d01351568587c (patch)
tree5762b9133549e367c920de32883dc38701fafdab /init/functions.el
parent4fabc361723ee056575c256ddc4549a71e48cccf (diff)
refactor(functions): Use display-line-numbers instead of linum
Diffstat (limited to 'init/functions.el')
-rw-r--r--init/functions.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/init/functions.el b/init/functions.el
index ed1cf9d2a4..07411396b2 100644
--- a/init/functions.el
+++ b/init/functions.el
@@ -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 ()