Emacs tty support for kitty keyboard protocol in tmux
Using some emacs shortcuts in the terminal is rough.
For example, I use C-;
for iedit-mode
, regular terminal emulators can not recognize that.
This is specially the case when using tmux or mosh.
With kitty's keyboard protocol1 and emacs's kkp2 package, this can be solved and AFAIK any emacs keybindings can be reproduced in the terminal.
One minor inconvenience, is that, when working remotely, with tmux, this keyboard protocol is not implemented. There was some discussion3 about it, but it is not done yet.
One solution I found with emacs, is to run a emacs server inside tmux, detaching, and run a emacsclient outside tmux. This gives us emacs with full keybindings capabilities, running in a persistent server inside tmux. In case our connection with the remote is lost, we can just connect to the emacs server inside tmux.