如何将ESC绑定到Emacs中的键盘转义 - 退出? [英] How to bind ESC to keyboard-escape-quit in Emacs?
本文介绍了如何将ESC绑定到Emacs中的键盘转义 - 退出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通常键盘转义退出已被绑定到 Esc Esc Esc 。是否可以将其重新绑定到一个 Esc ?我从来没有使用Escape作为前缀键。
Normally keyboard-escape-quit is bound to EscEscEsc. Is it possible to rebind it to a single Esc? I never use Escape as a prefix key.
我在Windows XP上运行Emacs 23.0.60.1。
I'm running Emacs 23.0.60.1 on Windows XP.
推荐答案
Rehashing other的答案,我有
Rehashing other's answer, I have
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
在我的.emacs文件中,它在我的emacs 22在WinXP上工作。我也讨厌连续打3个ESC;从几年(Windows)的习惯,我的手指自然而然地逃脱了任何令人不快的逃脱钥匙。
in my .emacs file, and it works on my emacs 22 on WinXP. I also hate typing 3 ESC in a row; and from years of (windows) habits my finger goes so naturally to the escape key for getting out of anything unpleasant.
这篇关于如何将ESC绑定到Emacs中的键盘转义 - 退出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文