[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map fe76f92777 91/97: Add default keys and default ev
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map fe76f92777 91/97: Add default keys and default evil-keys |
Date: |
Thu, 20 Jan 2022 07:59:30 -0500 (EST) |
branch: elpa/bind-map
commit fe76f92777e2e487d1512d2d39315cf3a9bf1a05
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Add default keys and default evil-keys
See bind-map-default-keys and bind-map-default-evil-keys. Both nil by
default.
---
bind-map.el | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/bind-map.el b/bind-map.el
index 2532ed0aa3..65aa1d06af 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -107,10 +107,18 @@
"Bind personal keymaps in multiple locations."
:group 'emacs)
+(defcustom bind-map-default-keys nil
+ "Default for :keys when unspecified."
+ :group 'bind-map)
+
(defcustom bind-map-default-evil-states '(normal motion visual)
"Default states for evil bindings."
:group 'bind-map)
+(defcustom bind-map-default-evil-keys nil
+ "Default for :evil-keys when unspecified."
+ :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'."
@@ -262,7 +270,8 @@ a convenience."
(active-var (intern (format "%s-active" map)))
(prefix-cmd (or (plist-get args :prefix-cmd)
(intern (format "%s-prefix" map))))
- (keys (plist-get args :keys))
+ (keys (or (plist-get args :keys)
+ bind-map-default-keys))
(override-minor-modes (or (plist-get args :override-minor-modes)
(plist-get args :evil-use-local)))
(override-mode (if (plist-get args :override-mode-name)
@@ -274,7 +283,8 @@ mode maps. Set up by bind-map.el." map))
(turn-on-override-mode (intern (format "turn-on-%s" override-mode)))
(turn-on-override-mode-doc (format "Enable `%s' except in minibuffer"
override-mode))
- (evil-keys (plist-get args :evil-keys))
+ (evil-keys (or (plist-get args :evil-keys)
+ bind-map-default-evil-keys))
(evil-states (or (plist-get args :evil-states)
bind-map-default-evil-states))
(minor-modes (plist-get args :minor-modes))
- [nongnu] elpa/bind-map 2fafc10f7d 45/97: Rename a var and a function and tweak a docstring, (continued)
- [nongnu] elpa/bind-map 2fafc10f7d 45/97: Rename a var and a function and tweak a docstring, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map e94572b50b 74/97: Increment version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 00b7778826 68/97: Fix minor-mode tests, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9ae3e9b113 72/97: Increment version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 40ed95d4d5 80/97: Add bindings keyword, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6f84c0254f 78/97: Increment version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map c335674139 60/97: Add files for travis, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 89747f7240 75/97: Fix evil-local-mode-hook logic, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 76b8e2ab6c 85/97: Add tests for inheritance, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6ba28e31aa 83/97: Revert change to prefix-cmd handling, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map fe76f92777 91/97: Add default keys and default evil-keys,
ELPA Syncer <=
- [nongnu] elpa/bind-map 26a3b5571d 88/97: Make return val consistent in bind-map, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map bf4181e3a4 95/97: Add types to defcustoms, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 510a24138d 97/97: Merge pull request #6 from skangas/bump-version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 21f972e52d 08/97: Clarify some parts of README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map d609a7d784 12/97: Add cl-lib requirement, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 27ed3304d2 19/97: Revert one of the changes in the previous commit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9f88b251f1 14/97: Fix typo, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 5077cb72cb 39/97: Add :override-minor-modes option for :keys, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 07eef581ef 15/97: Add URL, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ce4e8e7f64 21/97: Fix typos in docstrings, ELPA Syncer, 2022/01/20