~ashton314/emacs-bedrock

3561b11ce9f92b233815fc2a856d26ea6d94fe63 — Ashton Wiersdorf 11 months ago 16799ce
Add wgrep to base.el
2 files changed, 17 insertions(+), 1 deletions(-)

M README.md
M extras/base.el
M README.md => README.md +3 -0
@@ 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:

M extras/base.el => extras/base.el +14 -1
@@ 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))