From ec3d445a65fbd4be2de1aecb31a9377e07705eb2 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Sun, 11 Sep 2022 22:00:58 -0700 Subject: [PATCH] Let's expand how I can call visual replace function By adding it to a simple leader key. Perhaps SPC r should really be a menu? --- ha-config.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ha-config.org b/ha-config.org index 266fca9..c2ed943 100644 --- a/ha-config.org +++ b/ha-config.org @@ -1186,7 +1186,10 @@ I appreciated the [[https://github.com/benma/visual-regexp.el][visual-regexp pac (use-package visual-regexp :bind (("C-c r" . vr/replace) ("C-c q" . vr/query-replace)) - :general (:states 'normal "gR" '("replace" . vr/replace))) + :general (:states 'normal "gR" '("replace" . vr/replace)) + :config (ha-leader + "r" '("replace" . vr/replace) + "R" '("query replace" . vr/query-replace))) #+end_src *** Jump with Avy