diff options
| author | Justin Burkett <justin@burkett.cc> | 2018-06-05 14:10:15 -0400 |
|---|---|---|
| committer | James N <james@jojojames.com> | 2018-06-08 09:52:15 -0700 |
| commit | 0e7698dd1a13b1b3e861fc212859923f36043a18 (patch) | |
| tree | 47c190e6d5e5ba47139b4ac602e8a501c2b38b2e /evil-collection-comint.el | |
| parent | bca66d36fd7840284e553970ba9913e59521ef14 (diff) | |
Add support for {white,black}lists and binding records
Add and use evil-collection-define-key, which is a custom keybinding function
that checks evil-collection-key-{white,black}list before binding each key and
stores a record of the keybindings in evil-collection-bindings-record.
Modify evil-collection-util-inhibit-insert-state to conform to
evil-collection-define-key.
Diffstat (limited to 'evil-collection-comint.el')
| -rw-r--r-- | evil-collection-comint.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/evil-collection-comint.el b/evil-collection-comint.el index bbcc5f8..05b14be 100644 --- a/evil-collection-comint.el +++ b/evil-collection-comint.el @@ -35,10 +35,10 @@ (defun evil-collection-comint-setup () "Set up `evil' bindings for `comint'." (when evil-want-C-d-scroll - (evil-define-key 'normal comint-mode-map + (evil-collection-define-key 'normal 'comint 'comint-mode-map (kbd "C-d") #'evil-scroll-down)) - (evil-define-key 'normal comint-mode-map + (evil-collection-define-key 'normal 'comint 'comint-mode-map (kbd "C-j") #'comint-next-input (kbd "C-k") #'comint-previous-input (kbd "gj") #'comint-next-input @@ -46,7 +46,7 @@ (kbd "]") #'comint-next-input (kbd "[") #'comint-previous-input) - (evil-define-key 'insert comint-mode-map + (evil-collection-define-key 'insert 'comint 'comint-mode-map (kbd "<up>") #'comint-previous-input (kbd "<down>") #'comint-next-input)) |
