summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2019-12-07 15:52:30 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2019-12-07 15:52:30 +0100
commit8f4fb413763d2485a32d9d5882f8e977e95fee9d (patch)
tree36148f7fa2c7e20924712ea629a0853637534da0
parent38abbb97cc3de9768b1b8fe8c8da20141087b944 (diff)
downloaddotfiles-8f4fb413763d2485a32d9d5882f8e977e95fee9d.tar.xz
Disable rg.el's file-movement bindings
-rw-r--r--.emacs7
1 files changed, 7 insertions, 0 deletions
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