(Emacs/config)+fix error with wgrep

Need to set initial state to Normal instead of motion and bind stuff
properly for it to work.
This commit is contained in:
2024-04-24 04:02:54 +05:30
parent 90c0766992
commit c135997363

View File

@@ -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