Closed ghost closed 7 months ago
We do basically the same thing that your code does in meow-esc.el, the issue is that it never got triggered in the case where you start a server from a graphical window and then open a client in the terminal (starting a server from the command line and opening a graphical client worked fine)
yes - now I see. Running "emacs --daemon" from cli works well. Indeed my workflow was the whole time starting one emacs instance as a gui and server-start had been triggered via my init.el. Starting the daemon via systemd or cli should have some pros. So I will switch to this workflow. Anyway. Maybe it is useful for someone in the future to have this documented.
Thanks for the explanation!
Hi,
while using "emacsclient -t" the escape key does not send real ESC and does not switch back to normal mode. I know there is a similar issue with bone and some kind of workaround in evil mode too, which fixes the same behavior in terminals. I guess https://github.com/meow-edit/meow/issues/510 is the related fix for meow.
Anyway - in "emacsclient -t" this does not work - at least not with my emacs config. I found some hack for myself which solves the issue for me. But maybe there is something more elegant which could be fixed in the meow code itself - in case this is a general issue.
As long I use this one from https://github.com/doomemacs/doomemacs/issues/3675
and
(add-hook 'server-visit-hook #'personal/catch-tty-ESC)