emacs:重新映射 C-[ (当前为 ESC)
我在 ubuntu 10.04 上使用 emacs 23。我想重新映射“C-[”绑定。目前,当我按下它时,它会给我“ESC”。有没有办法重新映射它?
I'm using emacs 23 on ubuntu 10.04. I would like to remap the "C-[" binding. Currently, when I press it, it gives me "ESC". Is there a way to remap it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这不是 Emacs 绑定,但在 X 中具有全局作用,并且对于练习盲打的人来说,它可以用作 ESC 的更方便的替代品。我想如果您想以其他方式使用 X 键映射,则必须修改它,但我不建议这样做。
This is not an Emacs binding, but has global effect in X and it's used as handier substitute for ESC for people practicing touch typing. I guess you'll have to modify the X keymap if you want to use it in another fashion, but I wouldn't advice that.
C-[
是 ASCII ESCAPE 字符,Emacs 通常将其写为ESC
。这里不涉及键(它是一个字符),并且这里不涉及键绑定。或者更确切地说,键盘的 Escape 键发送控制字符 ESCAPE(也写作
C-[
和ESC
)。C-[
is the ASCII ESCAPE character, which Emacs usually writes asESC
.There is no key involved here (it's a character), and there is no key binding involved here. Or rather, your keyboard's Escape key sends the control character ESCAPE (also written
C-[
andESC
).