Use multi-term functions when it loads (#235)

This commit is contained in:
James Nguyen 2019-05-13 19:01:52 -07:00
parent 404c8cf8ba
commit 665eef8ae1
1 changed files with 8 additions and 1 deletions

View File

@ -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 "<M-backspace>") 'term-send-backward-kill-word)
(evil-collection-define-key 'insert 'term-raw-map
(kbd "<M-backspace>") 'term-send-backward-kill-word)))
(provide 'evil-collection-term)
;;; evil-collection-term.el ends here