From ea518db86fe5fef3493009dd820facbed60b5ba1 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 12 Mar 2015 23:24:50 -0400 Subject: Remove goto-line-with-feedback Whenever I use goto-line, it's because I already have the line number, so I don't need the feedback. If I just wanted to jump to a visible line, I'd use ace-jump-mode. --- lisp/init-editing.el | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lisp/init-editing.el b/lisp/init-editing.el index 6e66b9d..eb6adf3 100644 --- a/lisp/init-editing.el +++ b/lisp/init-editing.el @@ -125,16 +125,6 @@ and '<<<' mark the bounds of the narrowed region. (comment-or-uncomment-region beg end)) (forward-line)) -;; From http://whattheemacsd.com/key-bindings.el-01.html -(defun km/goto-line-with-feedback () - "Show line numbers when prompting for the line number input." - (interactive) - (unwind-protect - (progn - (linum-mode 1) - (call-interactively 'goto-line)) - (linum-mode -1))) - ;; Modified from http://oremacs.com/2015/01/26/occur-dwim/. (defun km/occur () "Call `occur' with active region or symbol at point." @@ -174,8 +164,6 @@ and '<<<' mark the bounds of the narrowed region. (define-key search-map "r" 'query-replace-regexp) (define-key search-map "R" 'replace-regexp) -(global-set-key [remap goto-line] 'km/goto-line-with-feedback) - (define-prefix-command 'km/editing-map) (global-set-key (kbd "C-c e") 'km/editing-map) -- cgit v1.2.3