From 3cc63254aeba456b9a4618a5c874f165784ff3c4 Mon Sep 17 00:00:00 2001 From: Jeremy Isaac Dormitzer Date: Wed, 20 Mar 2024 12:03:47 -0400 Subject: [PATCH] Add vterm binding to send C-g --- emacs/.emacs.d/config/init-vterm.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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"))