[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map e239bbdaef 44/97: Always use global evil maps
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map e239bbdaef 44/97: Always use global evil maps |
Date: |
Thu, 20 Jan 2022 07:59:18 -0500 (EST) |
branch: elpa/bind-map
commit e239bbdaefa17f7057ae97cb844e3e2ab0ce57bc
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Always use global evil maps
It's possible the hooks activating the overriding maps are not run, so
we keep the bindings in the global maps so they are still available in
these cases.
---
bind-map.el | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/bind-map.el b/bind-map.el
index 00afef3639..e64b45eb18 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -140,7 +140,7 @@ suitable for use in `kbd'.
:override-minor-modes BOOL
If non nil, make keys in :keys override the minor-mode maps, by
-using `emulation-mode-map-alists' instead of `global-map'. If
+using `emulation-mode-map-alists' instead of the `global-map'. If
either :major-modes or :minor-modes is specified, this setting
has no effect.
@@ -156,10 +156,11 @@ use `bind-map-default-evil-states'.
:evil-use-local BOOL
-This places all evil bindings in the local state maps for evil.
-These maps have high precedence and will mask most other evil
-bindings. If either :major-modes or :minor-modes is specified,
-this setting has no effect.
+This places all evil bindings in the local state maps for
+evil (as well as the global ones). These maps have high
+precedence and will mask most other evil bindings. If
+either :major-modes or :minor-modes is specified, this setting
+has no effect.
:major-modes (MODE1 MODE2 ...)
@@ -237,9 +238,9 @@ Declare a prefix command for MAP named COMMAND-NAME."
(global-set-key (kbd key) ',prefix-cmd)))
(dolist (key (list ,@evil-keys))
(dolist (state ',evil-states)
- (if ,evil-use-local
- (push (list state (kbd key) ',prefix-cmd)
bind-map-local-bindings)
- (evil-global-set-key state (kbd key) ',prefix-cmd))))))))
+ (when ,evil-use-local
+ (push (list state (kbd key) ',prefix-cmd)
bind-map-local-bindings))
+ (evil-global-set-key state (kbd key) ',prefix-cmd)))))))
(put 'bind-map 'lisp-indent-function 'defun)
;;;###autoload
- [nongnu] elpa/bind-map 80c38c4052 61/97: Add badges, (continued)
- [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, 2022/01/20
- [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 <=
- [nongnu] elpa/bind-map af26966c9a 57/97: Make macro expansion prettier, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 393879d260 58/97: Satisfy compiler, ELPA Syncer, 2022/01/20
- [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