about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-26T00·21+0100
committerVincent Ambo <tazjin@google.com>2020-05-26T00·21+0100
commit74a70896f26a42365d671720811e41cda24dc9c5 (patch)
tree6ce9c2c23c00041ea8d2321d5c3a63d442849cc6 /tools
parentb9b741287a81ea5bc89b3dc865ed38315b465824 (diff)
feat(tools/emacs): Add vterm-send-ctrl-x function r/856
This is useful if something accidentally opens nano.
Diffstat (limited to 'tools')
-rw-r--r--tools/emacs/config/functions.el5
1 files changed, 5 insertions, 0 deletions
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)