[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/guru-mode 3d53276 34/42: [Fix #7] Don't initialize the key
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/guru-mode 3d53276 34/42: [Fix #7] Don't initialize the keymap at load time |
Date: |
Wed, 11 Aug 2021 09:58:32 -0400 (EDT) |
branch: elpa/guru-mode
commit 3d532767888f40b6a13fcd62f649c9f6311dcf2d
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>
[Fix #7] Don't initialize the keymap at load time
---
guru-mode.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/guru-mode.el b/guru-mode.el
index 3553068..22ebebf 100644
--- a/guru-mode.el
+++ b/guru-mode.el
@@ -86,19 +86,23 @@
;; use it without interference.
(call-interactively current-binding)))))
-(dolist (cell guru-affected-bindings-list)
+(defun guru-init ()
+ "Initialize the guru keybindings."
+ (dolist (cell guru-affected-bindings-list)
(let ((original-key (car cell))
(recommended-key (car (cdr cell)))
(original-binding (car (cdr (cdr cell)))))
(define-key guru-mode-map
- (read-kbd-macro (car cell)) (guru-rebind original-key recommended-key
original-binding))))
+ (read-kbd-macro (car cell)) (guru-rebind original-key recommended-key
original-binding)))))
;;;###autoload
(define-minor-mode guru-mode
"A minor mode that teaches you to use Emacs effectively."
:lighter " guru"
:keymap guru-mode-map
- :group 'guru)
+ :group 'guru
+ (when guru-mode
+ (guru-init)))
;; define global minor mode
;;;###autoload
- [nongnu] elpa/guru-mode db23636 21/42: Merge pull request #5 from cowboyd/allow-minor-modes-to-reclaim-beginner-keys, (continued)
- [nongnu] elpa/guru-mode db23636 21/42: Merge pull request #5 from cowboyd/allow-minor-modes-to-reclaim-beginner-keys, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode eb38fb2 23/42: Fix delete key handling, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 062a417 27/42: Merge pull request #8 from ThibautVerron/keybindings-horizontal-scroll, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode fd80d94 14/42: added contribution guidelines, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode da632fa 26/42: Merge pull request #10 from syohex/update-url, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode ba88b73 09/42: minor documentation update, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode adf92d9 12/42: docs & code clean-up, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode a227ee5 15/42: Add the ability to only warn when arrow keys are being used, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 704a47d 25/42: Update MELPA URL, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode c180e05 30/42: Change "Home" and "End" replacements, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 3d53276 34/42: [Fix #7] Don't initialize the keymap at load time,
ELPA Syncer <=
- [nongnu] elpa/guru-mode 71ccf45 37/42: Fix indentation, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode e91cdfb 40/42: Fix broken badge, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 0c0db11 10/42: Removed a duplicated keybinding in the keymap., ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode c0e92da 13/42: use car/cdr instead of first & rest, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 6f9392f 19/42: Remove a couple of redundant functions, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode e7c3500 22/42: Wrong keybindings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 8ee0fcb 24/42: Merge pull request #9 from bkruczyk/fix-delete-key-handling, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 3274661 36/42: Add a docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 0aadb72 39/42: Add a few badges, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode fcb13d4 42/42: Tweak some wording, ELPA Syncer, 2021/08/11