dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

commit 57f45cb685008fd5ece8fb0a838e16ce1559c91e
parent b175bb10d8a6facd8f062c4a34e415fba88e03c0
Author: Anders Hedman <anders.hedman01@gmail.com>
Date:   Sun, 11 Jun 2023 22:46:45 +0200

doom: New package substitute

Diffstat:
M.doom.d/config.el | 10++++++++++
M.doom.d/packages.el | 1+
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/.doom.d/config.el b/.doom.d/config.el @@ -301,3 +301,13 @@ (map! :map terraform-mode-map :localleader :desc "format buffer" "f" #'terraform-format-buffer) + +(use-package! substitute + :config + (setq substitute-fixed-letter-case nil) + (add-hook 'substitute-post-replace-functions #'substitute-report-operation) + (map! :prefix "M-#" + :desc "Substitute below point" "s" #'substitute-target-below-point + :desc "Substitute above point" "r" #'substitute-target-above-point + :desc "Substitute across defun" "d" #'substitute-target-in-defun + :desc "Substitute across buffer" "b" #'substitute-target-in-buffer)) diff --git a/.doom.d/packages.el b/.doom.d/packages.el @@ -59,3 +59,4 @@ (package! kubernetes) (package! kubernetes-evil) (package! imenu-list) +(package! substitute)