Editing grep results with emacs

1 · Shane Mulligan · Nov. 3, 2019, 11 a.m.
Either require ivy or steal it’s function 1 2 3 4 5 6 (defun ivy-wgrep-change-to-wgrep-mode () "Forward to `wgrep-change-to-wgrep-mode'." (interactive) (if (require 'wgrep nil 'noerror) (wgrep-change-to-wgrep-mode) (error "Package wgrep isn't installed"))) When grep-mode is started, wgrep-setup must run to prepare wgrep 1 2 3 4 5 6 7 8 9 10 11 12 (defun grep-mode-hook-run () ;; This saves the keymap so it can be restored (wgrep-setup) (define-key compilation-button-map (kbd "C-m") 'compile-g...