[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.
- [nongnu] branch elpa/crux created (now 6bfd212), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 12c4901 001/112: Initial commit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux ae602a8 004/112: Use lexical scoping, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 8666ae8 002/112: Fix a docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 51d4240 007/112: Add missing space, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux db47b78 010/112: Don't promote the default keybindings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 7d4e425 013/112: Add some example keybinding code,
ELPA Syncer <=
- [nongnu] elpa/crux 9330468 016/112: Add missing crux-shell defcustom, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux c8ad7c1 017/112: Fix the interactive spec for crux-find-user-init-file, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 61bf2bd 003/112: Code style, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 66f4292 006/112: Code style, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux aafcf48 009/112: Introduce some customization options, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux c174247 014/112: Change crux-kill-like-backward to crux-kill-line-backward, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 0f04d98 015/112: Fix unbound var reference, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3009713 018/112: Update the copyright, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 86cabce 027/112: Merge pull request #10 from waymondo/file-and-buffer-naming-conventions, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 5ee7dc9 032/112: Require tramp for `tramp-tramp-file-p`, ELPA Syncer, 2021/08/11