[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map 988f14eb77 65/97: Use evil-define-minor-mode-key
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map 988f14eb77 65/97: Use evil-define-minor-mode-key for minor-mode keys |
Date: |
Thu, 20 Jan 2022 07:59:24 -0500 (EST) |
branch: elpa/bind-map
commit 988f14eb77baeeaa7440defd27b38e517e111f08
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Use evil-define-minor-mode-key for minor-mode keys
---
bind-map.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/bind-map.el b/bind-map.el
index da4b62a2e3..4070d68864 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -296,8 +296,14 @@ mode maps. Set up by bind-map.el." map))
(define-key ,root-map key ',prefix-cmd))
(dolist (key (bind-map-kbd-keys (list ,@evil-keys)))
(dolist (state ',evil-states)
- (define-key (evil-get-auxiliary-keymap ,root-map state t)
- key ',prefix-cmd))))
+ (when ',major-modes
+ (define-key
+ (evil-get-auxiliary-keymap ,root-map state t)
+ key ',prefix-cmd))
+ (dolist (mode ',minor-modes)
+ (when (fboundp 'evil-define-minor-mode-key)
+ (evil-define-minor-mode-key
+ state mode key ',prefix-cmd))))))
;; bind in global maps and possibly root-map
`((dolist (key (bind-map-kbd-keys (list ,@keys)))
(when ,override-minor-modes
- [nongnu] elpa/bind-map bb7a8b2258 59/97: Remove declare-function from previous commit, (continued)
- [nongnu] elpa/bind-map bb7a8b2258 59/97: Remove declare-function from previous commit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6d05297e3c 20/97: Add another example and more detail to README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map d47be94d23 63/97: Don't try to bind keys that are nil or "", ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ebc4c9fb11 34/97: Remove bind-map-kbd hack, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 8ec4516db2 48/97: Remove use of evil-define-key, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map c182707793 41/97: Remove unnecessary helper functions and reorg, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map b0b9e18947 66/97: Revert last commit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map f51d4b0c0d 79/97: Add bind-map-for-modes-derived, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 21b7ba7eca 30/97: Fix some docstrings, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map cc1db8958c 64/97: Version 0.1, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 988f14eb77 65/97: Use evil-define-minor-mode-key for minor-mode keys,
ELPA Syncer <=
- [nongnu] elpa/bind-map 292794739c 71/97: Fix incorrect check of override mode in local hook, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map b187069313 22/97: Add short versions for single major/minor mode, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map d45971cd40 46/97: Use minor mode for overriding behavior, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 8d6b489feb 50/97: Add some basic tests, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 24d453a1e8 55/97: Call evil-normalize-maps for evil-keys, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map b47b98455f 87/97: Simplify macro exp. for bind-mapfor-mode-inherit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 078c522f6e 93/97: Fix Makefile, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ffe5e63617 92/97: Version 1.1.0, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 46438e30c8 02/97: README formatting, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map f835ed39fe 06/97: Minor changes, ELPA Syncer, 2022/01/20