I connect to a headless Ubuntu server (no X) over SSH and run Emacs. In my ~/.emacs file I have defined a keyboard shortcut using the 's' (Super) modifier. This shortcut works when I run Emacs in a GUI but does not work over SSH. I have searched for an explanation but have not found one yet. I assume that the Super key is not passed over the SSH link?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
The GUI version of Emacs can listen for any keypress using the X11 protocol. The terminal version is a bit more limited – it can only receive keypresses the terminal program forwards; modifier keys only work as modifiers, never as separate keys; finally, the Super key is just not forwarded by any emulator, simply because it is generally thought to be reserved to the OS for such things as window management. |
|||
|
|
|
If you really need to use the less standard modifier keys from a terminal emulator, emacs has keybindings for these:
So in your case, use |
|||
|