Add binding for EOF (^D) in term

Bind term-send-eof only in insert mode
This is a useful binding to have, and is bound similarly to
term-send-esc (`C-c C-e`) and term-interrupt-subjob (`C-c C-c`).
This commit is contained in:
Allen Li 2015-04-15 17:44:17 -04:00 committed by syl20bnr
parent 6a9225299d
commit 8180feff89

View file

@ -1980,7 +1980,8 @@ Put (global-hungry-delete-mode) in dotspacemacs/config to enable by default."
(interactive)
(term-send-raw-string "\t"))
(add-to-list 'term-bind-key-alist '("<tab>" . term-send-tab)))))
(add-to-list 'term-bind-key-alist '("<tab>" . term-send-tab))
(evil-define-key 'insert term-raw-map (kbd "C-c C-d") 'term-send-eof))))
(defun spacemacs/init-neotree ()
(use-package neotree