Vterm: Clean up function

This commit is contained in:
James Nguyen 2019-08-06 18:59:42 -07:00
parent f8cf811d65
commit c27071c3ff
1 changed files with 0 additions and 12 deletions

View File

@ -45,13 +45,6 @@ it is not appropriate in some cases like terminals."
(when buffer
(kill-buffer buffer)))
(defun evil-collection-vterm-send-return ()
"Sends C-m to the libvterm.
Credits: https://github.com/akermu/emacs-libvterm/pull/70"
(interactive)
(process-send-string vterm--process "\C-m"))
(defvar-local evil-collection-vterm-send-escape-to-vterm-p nil
"Track whether or not we send ESC to `vterm' or `emacs'.")
@ -81,11 +74,6 @@ also uses `evil-mode'."
(add-hook 'vterm-mode-hook #'evil-collection-vterm-escape-stay)
(add-hook 'vterm-exit-functions #'evil-collection-vterm-exit-function)
;; FIXME: Remove this once https://github.com/akermu/emacs-libvterm/pull/70
;; is in.
(evil-collection-define-key 'insert 'vterm-mode-map
[return] #'evil-collection-vterm-send-return)
;; Open to a better binding...
(evil-collection-define-key '(normal insert) 'vterm-mode-map
(kbd "C-c C-z") 'evil-collection-vterm-toggle-send-escape)