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

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

[nongnu] elpa/crux 7d4e425 013/112: Add some example keybinding code


From: ELPA Syncer
Subject: [nongnu] elpa/crux 7d4e425 013/112: Add some example keybinding code
Date: Wed, 11 Aug 2021 09:57:44 -0400 (EDT)

branch: elpa/crux
commit 7d4e425af79c5756c243f74e86884680e671c2e1
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>

    Add some example keybinding code
---
 README.md | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/README.md b/README.md
index 3eecb43..e1274c7 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,17 @@ Command                                     | Suggested 
Keybinding(s)         |
 `crux-kill-whole-line`                      | <kbd>Super-k</kbd> | Kill whole 
line
 `crux-kill-line-backwards`                  | <kbd>C-Backspace</kbd> | Kill 
line backwards
 
+Here's how you'd bind some of the commands to keycombos:
+
+```el
+(global-set-key [remap move-beginning-of-line] #'crux-move-beginning-of-line)
+(global-set-key (kbd "C-c o") #'crux-open-with)
+(global-set-key [(shift return)] #'crux-smart-open-line)
+(global-set-key (kbd "s-r") #'crux-recentf-ido-find-file)
+(global-set-key (kbd "C-<backspace>" #'crux-kill-line-backwards))
+(global-set-key [remap kill-whole-line] #'crux-kill-whole-line)
+```
+
 ## Using the bundled advices
 
 crux ships with some handy advises that can enhance the operation of existing 
commands. 



reply via email to

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