[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map 4cccf8fb82 23/97: Add configuration var for defau
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map 4cccf8fb82 23/97: Add configuration var for default map suffix |
Date: |
Thu, 20 Jan 2022 07:59:11 -0500 (EST) |
branch: elpa/bind-map
commit 4cccf8fb821060cba95af33151783a2441894c4a
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Add configuration var for default map suffix
---
bind-map.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/bind-map.el b/bind-map.el
index 15c5c5bb43..a524f81788 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -88,6 +88,11 @@
"Default states for evil bindings."
:group 'bind-map)
+(defcustom bind-map-default-map-suffix "-bm-map"
+ "Default suffix to use for `bind-map-for-major-mode' and
+`bind-map-for-minor-mode'."
+ :group 'bind-map)
+
;;;###autoload
(defmacro bind-map (map &rest args)
"Bind keymap MAP in multiple locations.
@@ -188,7 +193,8 @@ a major mode. This macro makes the call
where ARGS should include :keys or :evil-keys. The name of the
generated keymap is returned, which is always the name of the
major mode with -bm-map appended."
- (let ((map-name (intern (format "%s-bm-map" major-mode))))
+ (let ((map-name (intern (concat (symbol-name major-mode)
+ bind-map-default-map-suffix))))
`(progn
(bind-map ,map-name
:major-modes (,major-mode)
@@ -209,7 +215,8 @@ a minor mode. This macro makes the call
where ARGS should include :keys or :evil-keys. The name of the
generated keymap is returned, which is always the name of the
minor mode with -bm-map appended."
- (let ((map-name (intern (format "%s-bm-map" minor-mode))))
+ (let ((map-name (intern (concat (symbol-name minor-mode)
+ bind-map-default-map-suffix))))
`(progn
(bind-map ,map-name
:minor-modes (,minor-mode)
- [nongnu] elpa/bind-map ce11d259bf 42/97: Update commentary to match README, (continued)
- [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
- [nongnu] elpa/bind-map 797c2124f8 86/97: Restructure tests, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6e1ba6edbd 94/97: Update README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 873c26d467 89/97: Get basic inheritance tests working, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6977e0fec5 96/97: Bump version to 1.1.2, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map b59d7bbab7 40/97: Add note about dependence on evil to README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 5c6f17939c 28/97: Get rid of eval-after-loads to fix evil bindings, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 80c38c4052 61/97: Add badges, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 4cccf8fb82 23/97: Add configuration var for default map suffix,
ELPA Syncer <=
- [nongnu] elpa/bind-map 7a4d329a60 18/97: Correct wrong package names, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 4cf9dfd1cb 81/97: Fix declare form, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ddce68ed1d 53/97: Move evil-local-mode hook next to var, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 2a5fcbd947 73/97: Revert "Fix incorrect check of override mode in local hook", ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map f4fad049d0 70/97: Bump to version 1.0, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9599acb5ab 35/97: Silence warning about defvar-local, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 662dea907c 51/97: Suppress make-local warnings from compiler, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9a676378fe 54/97: Simplify major-mode activation, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map e239bbdaef 44/97: Always use global evil maps, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map af26966c9a 57/97: Make macro expansion prettier, ELPA Syncer, 2022/01/20