.emacs.d

the most bloated Emacs config on this planet
git clone https://git.trogloxene.org/.emacs.d.git
Log | Files | Refs

commit 9360f699facbd50383eb6f22906664c19bae900f
parent 6e123b4502246471ec37696d7def3b43f3514979
Author: andsy10 <andsy1016@gmail.com>
Date:   Sun, 23 Aug 2026 01:36:51 +0800

Add substitute package for faster replacement

Diffstat:
Mlisp/init-edit.el | 3+++
Mlisp/init-kbd.el | 10++++++++++
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/lisp/init-edit.el b/lisp/init-edit.el @@ -84,6 +84,9 @@ ;; avy-zap (use-package avy-zap) +;; faster replacement +(use-package substitute) + ;; modal editing (use-package god-mode :init diff --git a/lisp/init-kbd.el b/lisp/init-kbd.el @@ -177,6 +177,16 @@ "C-d" #'helpful-at-point "C-a" #'apropos) +;; r for replacement +(general-def + :prefix "C-c r" + "h" #'substitute-target-in-paragraph + "p" #'substitute-target-in-page + "d" #'substitute-target-in-defun + "b" #'substitute-target-in-buffer + "l" #'substitute-target-below-point + "u" #'substitute-target-above-point) + ;; scratch buffer (if *is-mac* (general-def "C-c <f12>" #'scratch-buffer)