From 74a70896f26a42365d671720811e41cda24dc9c5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 26 May 2020 01:21:02 +0100 Subject: feat(tools/emacs): Add vterm-send-ctrl-x function This is useful if something accidentally opens nano. --- tools/emacs/config/functions.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/emacs/config/functions.el b/tools/emacs/config/functions.el index 62611bb638..24d998ed9e 100644 --- a/tools/emacs/config/functions.el +++ b/tools/emacs/config/functions.el @@ -300,4 +300,9 @@ (= (map-elt (notmuch-show-get-message-properties) :depth) current-depth))))) (force-window-update)) +(defun vterm-send-ctrl-x () + "Sends `C-x' to the libvterm." + (interactive) + (vterm-send-key "x" nil nil t)) + (provide 'functions) -- cgit 1.4.1