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

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

[elpa] externals/wcheck-mode 912c47d: Change README example about key bi


From: Teemu Likonen
Subject: [elpa] externals/wcheck-mode 912c47d: Change README example about key bindings
Date: Sat, 6 Feb 2021 10:45:42 -0500 (EST)

branch: externals/wcheck-mode
commit 912c47d5972961a6fcfe34192c75ace11b501244
Author: Teemu Likonen <tlikonen@iki.fi>
Commit: Teemu Likonen <tlikonen@iki.fi>

    Change README example about key bindings
---
 README.md | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 249050f..afbb399 100644
--- a/README.md
+++ b/README.md
@@ -121,13 +121,17 @@ easy configuration you can use the options in the 
customize group named
 _wcheck_ (`M-x customize-group RET wcheck RET`).
 
 It might be convenient to bind Wcheck mode commands to some easily
-accessible keys, for example:
-
-    (global-set-key (kbd "C-c s") 'wcheck-mode)
-    (global-set-key (kbd "C-c l") 'wcheck-change-language)
-    (global-set-key (kbd "C-c c") 'wcheck-actions)
-    (global-set-key (kbd "C-c n") 'wcheck-jump-forward)
-    (global-set-key (kbd "C-c p") 'wcheck-jump-backward)
+accessible keys. The next example uses `C-c w` as a prefix key for
+different Wcheck commands:
+
+    (global-set-key (kbd "C-c w")
+                    (let ((map (make-sparse-keymap)))
+                      (define-key map "w" 'wcheck-mode)
+                      (define-key map "l" 'wcheck-change-language)
+                      (define-key map "a" 'wcheck-actions)
+                      (define-key map "f" 'wcheck-jump-forward)
+                      (define-key map "b" 'wcheck-jump-backward)
+                      map))
 
 Interactive command `wcheck-mode` toggles the text-checker minor mode
 for the current buffer. Command `wcheck-change-language` is used to



reply via email to

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