summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Lassieur <clement.lassieur@parrot.com>2019-04-04 14:40:24 +0200
committerClément Lassieur <clement.lassieur@parrot.com>2019-04-04 14:46:27 +0200
commit2d21e15676fb2a95157d94b635141bae5ca1c138 (patch)
treea1291eb73050967ec486530f43b4779a719212f7
parent274e4903c44bd6e72823652cf5d35b47eeea12c1 (diff)
downloademacs-2d21e15676fb2a95157d94b635141bae5ca1c138.tar.gz
emacs: don't put ag result buffers in evil-motion-mode
Because in 'V' mode (which happens often, with mouse clicks), 'g' doesn't work. I want 'g' to work all the time.
-rw-r--r--stow/home/.emacs.d/conf/my-init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/stow/home/.emacs.d/conf/my-init.el b/stow/home/.emacs.d/conf/my-init.el
index 7dc9b37..b73ad97 100644
--- a/stow/home/.emacs.d/conf/my-init.el
+++ b/stow/home/.emacs.d/conf/my-init.el
@@ -219,6 +219,13 @@
(define-key evil-normal-state-map (kbd "C-a") 'evil-numbers/inc-at-pt)
(define-key evil-normal-state-map (kbd "C-S-a") 'evil-numbers/dec-at-pt))
+;; because in evil-keybindings.el, there is:
+;; (eval-after-load 'ag
+;; (add-to-list 'evil-motion-state-modes 'ag-mode))
+(with-eval-after-load 'evil-keybindings
+ (with-eval-after-load 'ag
+ (setq evil-motion-state-modes (remove 'ag-mode evil-motion-state-modes))))
+
(with-eval-after-load 'info
(evil-set-initial-state 'Info-mode 'emacs))