如何在终端中向 Emacs 发送 S-RET? [英] How does one send S-RET to Emacs in a terminal?
问题描述
在org-mode
中,按下M-S-RET
(meta-shift-return) 将在新行上创建一个新的TODO
.这个按键序列通过我的终端将 M-RET
发送到 emacs.我已经用 C-h c ESC-S-RET
检查了这个,它在迷你缓冲区中返回 M-RET is undefined
.
In org-mode
, pressing M-S-RET
(meta-shift-return) will create a new TODO
on a new line. This key sequence sends M-RET
to emacs through my terminal. I've checked this with C-h c ESC-S-RET
, which returns M-RET is undefined
in the mini-buffer.
我将 Snow Leopard 与在 Terminal.app 中运行的 Emacs 23.2.1 一起使用.在终端键盘首选项中没有定义 RET
序列的选项.
I'm using Snow Leopard with Emacs 23.2.1 running in Terminal.app. There is no option to define a RET
sequence in the terminal keyboard preferences.
知道是什么导致了 SHIFT
丢失?解决方法?
Any idea what's causing the missing SHIFT
? Workarounds?
推荐答案
你可以让 Emacs 假装它得到了 S-RET
和 Cx @ S RET
(注意大写S
).
You can get Emacs to pretend that it got S-RET
with C-x @ S RET
(note uppercase S
).
这也适用于添加 control、meta、alt、hyper 或 super 修饰符;键入 C-x @ C-h
以获得绑定列表.Emacs 手册中的修改键部分 提到这也是.
This also works for adding control, meta, alt, hyper or super modifiers; type C-x @ C-h
for the list of bindings. The Modifier Keys section in the Emacs manual mentions this as well.
这篇关于如何在终端中向 Emacs 发送 S-RET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!