aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/config.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-24 04:02:54 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-24 04:02:54 +0530
commitc135997363495a523ff28ab30086d766a26d7c95 (patch)
tree569efb530f0c1e1aabcab1d0d7ec12956a3b723d /Emacs/.config/emacs/config.org
parent90c0766992ee1e5326d288f164569c33ceb7bda2 (diff)
downloaddotfiles-c135997363495a523ff28ab30086d766a26d7c95.tar.gz
dotfiles-c135997363495a523ff28ab30086d766a26d7c95.tar.bz2
dotfiles-c135997363495a523ff28ab30086d766a26d7c95.zip
(Emacs/config)+fix error with wgrep
Need to set initial state to Normal instead of motion and bind stuff properly for it to work.
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