home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 31bd78466e4a045c204292862d9f34fadb0204af
parent 4d339f5ead1d6901d0ae699b34edc4ff8071b705
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue, 28 May 2024 13:46:12 +0200

tools/emacs: add and configure substitute

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-editing.el | 6++++++
Musers/vincent/dev/emacs.nix | 1+
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/config-editing.el b/tools/emacs/config/config-editing.el @@ -171,5 +171,11 @@ If region is active, add its contents to the new buffer." (use-package surround :bind-keymap ("M-'" . surround-keymap)) +(use-package substitute + :bind (("M-<insert> s" . substitute-target-below-point) + ("M-<insert> r" . substitute-target-above-point) + ("M-<insert> d" . substitute-target-in-defun) + ("M-<insert> b" . substitute-target-in-buffer))) + (provide 'config-editing) ;;; config-editing.el ends here diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -140,6 +140,7 @@ let scratch shr-tag-pre-highlight smartparens + substitute surround symbol-overlay tempel