diff --git a/emacs/.emacs.d/config/init-vterm.el b/emacs/.emacs.d/config/init-vterm.el index 19d9423..024c3a3 100644 --- a/emacs/.emacs.d/config/init-vterm.el +++ b/emacs/.emacs.d/config/init-vterm.el @@ -38,11 +38,15 @@ (defun vterm-edit-zsh-command-line () "Edit the current command line in a temp buffer." (interactive) - (vterm-send-C-x) - (vterm-send-C-e)) + (vterm-send "C-x") + (vterm-send "C-e")) + (defun vterm-send-C-g () + (interactive) + (vterm-send "C-g")) :general (leader-map "v" #'vterm) - (vterm-mode-map "C-x C-e" #'vterm-edit-zsh-command-line) + (vterm-mode-map "C-x C-e" #'vterm-edit-zsh-command-line + "C-c C-g" #'vterm-send-C-g) :custom (vterm-max-scrollback 10000) (vterm-environment '("TYPEWRITTEN_CURSOR=terminal"))