From 8f4fb413763d2485a32d9d5882f8e977e95fee9d Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sat, 7 Dec 2019 15:52:30 +0100 Subject: Disable rg.el's file-movement bindings --- .emacs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.emacs b/.emacs index ef76191..6774532 100644 --- a/.emacs +++ b/.emacs @@ -195,6 +195,13 @@ ;; in stone, and I would miss out on future updates by Magit. (add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell) +;; rg re-binds C-n and C-p. I loathe arrow keys for regular movement, +;; and n and p are laggy because they visit the matched files. +;; Since I can't blame anyone for telling me "It's 2019; use the arrow +;; keys and buy an SSD already", I'll just add this kludge… +(define-key rg-mode-map (kbd "C-p") nil) +(define-key rg-mode-map (kbd "C-n") nil) + ;; Major modes configuration -- cgit v1.2.3