diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-26T00·21+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-26T00·21+0100 |
commit | 74a70896f26a42365d671720811e41cda24dc9c5 (patch) | |
tree | 6ce9c2c23c00041ea8d2321d5c3a63d442849cc6 /tools/emacs/config | |
parent | b9b741287a81ea5bc89b3dc865ed38315b465824 (diff) |
feat(tools/emacs): Add vterm-send-ctrl-x function r/856
This is useful if something accidentally opens nano.
Diffstat (limited to 'tools/emacs/config')
-rw-r--r-- | tools/emacs/config/functions.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/emacs/config/functions.el b/tools/emacs/config/functions.el index 62611bb63857..24d998ed9e37 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) |