Hello. Does anyone by chance ever have to ssh to a linux system from the Windows Terminal? M-x doesn't seem to work on emacs by default, even though I don't see any obviously conflicting keybinding.
Or I guess I have to look at if alt is also recognized as a meta key in the terminal...
This customization seems to have been the culprit. (it works ok on emacs gui)
(define-key key-translation-map (kbd "ESC") (kbd "C-g"))In some terminals, there's no such thing as meta, and is actually ESC followed by x. I expect that's what you're sshing to. So you get some terminal emulators turning alt-x into ESC x. I have no idea if you can make the windows term emulator do that.
if you want to keep that customisation, wrap it in when (display-graphic-p) (and make sure it's not in early-init.el, which evals before graphics)
Although, if you weren't aware, ESC ESC ESC (keyboard-escape-quit) can get you out of a pickle sometimes when C-g isn't helping, so you might want to rebind that to C-<escape> or something