emacs-libvterm icon indicating copy to clipboard operation
emacs-libvterm copied to clipboard

Configurable prefix key?

Open micah opened this issue 5 years ago • 1 comments

Hello,

I really love vterm, thanks for this! I can finally use terminals in emacs!

I'm often needing to send C-c to interrupt shell commands, and unfortunately, it is also the prefix key for vterm. So, I have to send C-c C-c to actually send the Control-c character.

Would it be possible to make the prefix key for vterm configurable, so I don't have to hit that twice every time I want to interrupt something?

Thanks!

micah avatar Dec 21 '20 14:12 micah

We don't have the concept of prefix key in vterm. C-c C-c is bound to a function, vterm-send-C-c. You are free to change its binding to anything you would like. However, I would advise against binding it to C-c. C-c is an Emacs prefix which many other packages use, so you may end up with some unintended side-effects.

Sbozzolo avatar Dec 27 '20 15:12 Sbozzolo