SSH 上的超级密钥

Sab*_*lfy 2 keyboard ssh keyboard-shortcuts keyboard-layout emacs

我通过 SSH 连接到无头 Ubuntu 服务器(无 X)并运行 Emacs。在我的 ~/.emacs 文件中,我使用“s”(超级)修饰符定义了一个键盘快捷键。当我在 GUI 中运行 Emacs 但不能通过 SSH 运行时,此快捷方式有效。我已经寻找了一种解释,但还没有找到。我假设超级密钥没有通过 SSH 链接传递?

Jua*_*cho 5

如果你真的需要使用终端模拟器中不太标准的修饰键,emacs 有这些键绑定:

C-x @ S         event-apply-shift-modifier
C-x @ a         event-apply-alt-modifier
C-x @ c         event-apply-control-modifier
C-x @ h         event-apply-hyper-modifier
C-x @ m         event-apply-meta-modifier
C-x @ s         event-apply-super-modifier
Run Code Online (Sandbox Code Playgroud)

所以在你的情况下,使用C-x @ ssuper 修饰符。