Skip to content

Instantly share code, notes, and snippets.

@magnars
magnars / goto-line-with-feedback.el
Created Aug 8, 2012 — forked from joshwnj/goto-line-with-feedback.el
Emacs: Show line numbers temporarily, while prompting for the line number input
View goto-line-with-feedback.el
;; turn line numbers off by default
(global-linum-mode -1)
(defun goto-line-with-feedback (&optional line)
"Show line numbers temporarily, while prompting for the line number input"
(interactive "P")
(if line
(goto-line line)
(unwind-protect
(progn