branch: elpa/anzu
commit 42996934e26e2232856737865356259a877914a7
Author: Sebastian Wiesner <[email protected]>
Commit: Sebastian Wiesner <[email protected]>

    Change syntax for bindings
    
    Instead of overriding the keys, suggest to remap the commands which remaps 
the commands everywhere (e.g. also in the menu bar) and creates nicer 
docstrings (the docstring of `query-replace` will still show its default 
bindings, indicating that they were remapped to `anzu-query-replace`).
---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index f2fe3ff13e..505e0080cd 100644
--- a/README.md
+++ b/README.md
@@ -57,8 +57,8 @@ Same as `query-replace-regexp` except anzu information in 
mode-line
 Add following S-exp in your configuration if you want to use anzu's replace 
commands by default.
 
 ```lisp
-(global-set-key (kbd "M-%") 'anzu-query-replace)
-(global-set-key (kbd "C-M-%") 'anzu-query-replace-regexp)
+(global-set-key [remap query-replace] 'anzu-query-replace)
+(global-set-key [remap query-replace-regexp] 'anzu-query-replace-regexp)
 ```
 
 [anzu-replace-demo](image/anzu-replace-demo.gif)

Reply via email to