From c135997363495a523ff28ab30086d766a26d7c95 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 24 Apr 2024 04:02:54 +0530 Subject: (Emacs/config)+fix error with wgrep Need to set initial state to Normal instead of motion and bind stuff properly for it to work. --- Emacs/.config/emacs/config.org | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Emacs/.config/emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 020cf8d..2154153 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -680,8 +680,17 @@ thing faster and within Emacs lisp. ~rgrep~ is useful though. "d" #'rgrep) (nmmap :keymaps 'grep-mode-map - "0" #'evil-digit-argument-or-evil-beginning-of-line - "W" #'wgrep-change-to-wgrep-mode)) + "0" #'evil-beginning-of-line + "q" #'quit-window + "i" #'wgrep-change-to-wgrep-mode) + (nmmap + :keymaps 'wgrep-mode-map + "q" #'evil-record-macro + "Zz" #'wgrep-finish-edit + "Zq" #'wgrep-abort-changes) + :config + ;; Without this wgrep doesn't work properly + (evil-set-initial-state 'grep-mode 'normal)) #+end_src *** rg #+begin_src emacs-lisp -- cgit v1.2.3-13-gbd6f