From 665eef8ae19cd49fa094c0a2ecc0b42d99e87fb9 Mon Sep 17 00:00:00 2001 From: James Nguyen Date: Mon, 13 May 2019 19:01:52 -0700 Subject: [PATCH] Use multi-term functions when it loads (#235) --- evil-collection-term.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/evil-collection-term.el b/evil-collection-term.el index 0dc55b5..60173c9 100644 --- a/evil-collection-term.el +++ b/evil-collection-term.el @@ -154,7 +154,14 @@ it is not appropriate in some cases like terminals." "gj" 'term-next-prompt ;; "0" 'term-bol ; "0" is meant to really go at the beginning of line. "^" 'term-bol - "$" 'term-show-maximum-output)) + "$" 'term-show-maximum-output) + + ;; https://github.com/emacs-evil/evil-collection/issues/235 + (with-eval-after-load 'multi-term + (evil-collection-define-key 'normal 'term-mode-map + (kbd "") 'term-send-backward-kill-word) + (evil-collection-define-key 'insert 'term-raw-map + (kbd "") 'term-send-backward-kill-word))) (provide 'evil-collection-term) ;;; evil-collection-term.el ends here