[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map db9d72efcd 31/97: Better version of bind-map-key
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map db9d72efcd 31/97: Better version of bind-map-key |
Date: |
Thu, 20 Jan 2022 07:59:12 -0500 (EST) |
branch: elpa/bind-map
commit db9d72efcd75510ac892f9e234fea59afa7605b9
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Better version of bind-map-key
---
bind-map.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/bind-map.el b/bind-map.el
index 2e4ac36671..05cfa1c05c 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -225,7 +225,11 @@ concatenated with `bind-map-default-map-suffix'."
(put 'bind-map-for-minor-mode 'lisp-indent-function 'defun)
(defun bind-map-kbd (key)
- (if (stringp key) (kbd key) (kbd (eval key))))
+ "If KEY is a string use `kbd'. If it's a symbol, use
+`symbol-value' then `kbd'."
+ (cond ((stringp key) (kbd key))
+ ((symbolp key) (kbd (symbol-value key)))
+ (t (error "bind-map-kbd: KEY should be a string or a symbol. KEY is
%s" key))))
(defun bind-map-evil-define-key (states map keys def)
"Version of `evil-define-key' that binds DEF across multiple
- [nongnu] elpa/bind-map 24d453a1e8 55/97: Call evil-normalize-maps for evil-keys, (continued)
- [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
- [nongnu] elpa/bind-map 8dea8e8f91 10/97: Grammatical fix in README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map e5647f14cf 11/97: Clarify modes in README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map c8fa049b70 13/97: Update Commentary section to match README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 281a56c332 16/97: Fix major-mode-list, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map db9d72efcd 31/97: Better version of bind-map-key,
ELPA Syncer <=
- [nongnu] elpa/bind-map 76f742191b 24/97: Add gitignore, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 74e9defb60 25/97: Fix doctrings for recent additions, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 38dc69ab80 49/97: Make sure major-mode keys are activated initially, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map df2f5081e1 27/97: Use custom kbd command, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map b30c22f7f9 33/97: Report symbol name in previously added error msg, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 7ab7ae8dd3 62/97: Fix cask file, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 8e3df1f4cf 36/97: Use add-to-list for mm list and defvar prefix, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ce11d259bf 42/97: Update commentary to match README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 32a3361b3b 67/97: Bring back evil-define-minor-mode-key, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 56e4a914c2 82/97: Fix tests, ELPA Syncer, 2022/01/20