在终端中使用 emacs 时,某些键绑定不起作用
我通过在终端中输入 emacs
在它自己的窗口中加载 GNU emacs。 我喜欢使用 pc-selection-mode 中的键绑定,它允许您使用右移或左移来突出显示字符,或者通过按上移或下移来突出显示整行。
问题是,当我在终端中输入 emacs -nw
运行 emacs 时,后两个键绑定不起作用。我可以使用左移和右移来突出显示字符,但按上移和下移不会执行任何操作。光标停留在原来的位置。
我该如何解决这个问题?为什么它会发生?我正在使用 GNU Emacs 23.1.1,并且我已经确认,当 emacs 在它自己的窗口中以及当 emacs 在终端内运行时,都使用相同的版本。
感谢您的帮助
I load GNU emacs in it's own window by typing emacs
in the terminal.
I like to use the keybindings from pc-selection-mode, which allows you to highlight characters using shift-right or shift-left, or entire lines by pressing shift-up or shift-down.
The problem is that when I run emacs in the terminal by typing emacs -nw
, the latter 2 keybindings don't work. I can highlight characters using shift-left and shift-right, but pressing shift-up and shift-down doesn't do anything. The cursor stays where it is.
How do I fix this problem? Why is it even occurring? I'm using GNU Emacs 23.1.1, and I've confirmed that the same version is being used both when emacs is in it's own window and when emacs is running inside the terminal.
Thanks for any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很多时候,绑定没有列出,或者映射错误。您可以尝试 Mx show-lossage (或 Ch l)来查看转义序列是否到达 emacs。如果他们这样做,您可能想尝试 xterm-extras - 即使我迁移它也总是有效在不同版本的linux和solaris之间,以及我在它们之间进行ssh(这通常是问题的根源)。
A lot of times the bindings just aren't listed, or are mapped wrong. You can try M-x show-lossage (or C-h l) to see if the escape sequences reach emacs or not. If they do, you might want to try xterm-extras -- it's always worked even as I migrate between different versions of linux and solaris, and as I ssh between them (which is often a source of problems).