emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/anzu 42996934e2 239/288: Change syntax for bindings


From: ELPA Syncer
Subject: [nongnu] elpa/anzu 42996934e2 239/288: Change syntax for bindings
Date: Thu, 6 Jan 2022 03:58:56 -0500 (EST)

branch: elpa/anzu
commit 42996934e26e2232856737865356259a877914a7
Author: Sebastian Wiesner <swiesner@lunaryorn.com>
Commit: Sebastian Wiesner <swiesner@lunaryorn.com>

    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

[Prev in Thread] Current Thread [Next in Thread]