aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/config.org
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r--Emacs/.config/emacs/config.org13
1 files changed, 11 insertions, 2 deletions
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