在emacs的终端中使用Ctrl-X命令? [英] Use Ctrl-X commands while in terminal in emacs?
问题描述
当我在emacs(带有 Mx项
)中运行终端时,我似乎无法使用以 CX开头的命令
,例如说 Cx o
切换窗格,或说 Cx Cc
退出窗格。相反,终端本身似乎正在接收这些 C-x
信号。相比之下,emacs本身会收到 C-c
命令。如何更改此行为?
When I'm running a terminal inside emacs (with M-x term
) I can't seem to use commands that start with C-X
, such as, say C-x o
to switch panes or C-x C-c
to exit. Instead it seems that the terminal itself is receiving these C-x
signals. By contrast, C-c
commands are received by emacs itself. How can I change this behavior?
推荐答案
term
有两个不同的输入子模式。在默认(字符)模式下, C-x
只是将文本 control x 发送到终端。现在通常在 Cc
映射中可用的许多键绑定现在在 Cc
映射中可用,因此您可以切换到在另一个窗口中使用 Cc 4 b
的另一个缓冲区。或者,您可以使用 Cc Cj
切换到行模式(并使用 Cc Ck
切换回字符模式)。
term
has two different input submodes. In the default (character) mode, C-x
simply transmits a literal control x to the terminal. Many keybindings which are normally available in the C-x
map are instead now in the C-c
map, so you can switch to a different buffer in the other window with C-c 4 b
. Or you can switch to line mode with C-c C-j
(and back to character mode with C-c C-k
).
另请参见文档。
这篇关于在emacs的终端中使用Ctrl-X命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!