aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshton Wiersdorf <mail@wiersdorf.dev>2023-09-18 12:37:55 -0600
committerAshton Wiersdorf <mail@wiersdorf.dev>2023-09-18 12:37:55 -0600
commit3561b11ce9f92b233815fc2a856d26ea6d94fe63 (patch)
treedde453df3b59733a54779b79946b28f317ebe198
parent16799ce9b694d3f1ff54a6c419d0c72d35981ec9 (diff)
Add wgrep to base.el
-rw-r--r--README.md3
-rw-r--r--extras/base.el15
2 files changed, 17 insertions, 1 deletions
diff --git a/README.md b/README.md
index d5d8aff..41e2c9a 100644
--- a/README.md
+++ b/README.md
@@ -114,6 +114,7 @@ Packages this extra adds:
- [Corfu](https://github.com/minad/corfu)
- [Consult](https://github.com/minad/consult)
- [Orderless](https://github.com/oantolin/orderless)
+ - [wgrep](https://github.com/mhayashi1120/Emacs-wgrep)
Along with a few ancillary packages that enhance the above.
@@ -121,6 +122,8 @@ These are some of the best UI enhancements that Emacs has to offer. Vertico and
Avy is the fastest way to move around in a buffer, and it can do a *lot*.[^1] Embark is kind of like a right-click context menu, but entirely keyboard driven.
+wgrep makes grep buffers editable. This means you can `consult-ripgrep` → search project → `embark-act` → `embark-export` → `wgrep-change-to-wgrep-mode` to do search-and-replace across an entire project in one fell swoop. See [Warp Factor Refactoring](https://lambdaland.org/posts/2023-05-31_warp_factor_refactor/) for more on this workflow.
+
#### `extras/dev.el`
Packages this extra adds:
diff --git a/extras/base.el b/extras/base.el
index 26ffc9a..5e49625 100644
--- a/extras/base.el
+++ b/extras/base.el
@@ -1,6 +1,6 @@
;;; Emacs Bedrock
;;;
-;;; Extra config: Base UI enhancements
+;;; Extra config: Base enhancements
;;; Usage: Append or require this file from init.el to enable various UI/UX
;;; enhancements.
@@ -10,6 +10,7 @@
;;; - Motion aids
;;; - Power-ups: Embark and Consult
;;; - Minibuffer and completion
+;;; - Misc. editing enhancements
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
@@ -132,3 +133,15 @@
:ensure t
:config
(setq completion-styles '(orderless)))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Misc. editing enhancements
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; Modify search results en masse
+(use-package wgrep
+ :ensure t
+ :config
+ (setq wgrep-auto-save-buffer t))