在 emacs 中禁用或重新映射紧急逃生?
是否可以在控制台中禁用紧急逃生功能emacs,或者将其重新映射到另一个组合键?我有一个坏习惯,就是在导航时多次点击 Cg
,而且当我的连接速度很慢时,有时会被转储到 shell,这很令人沮丧。
Is it possible to disable the emergency escape feature in console emacs, or remap it to another key combination? I have a bad habit of hitting C-g
multiple times while navigating, and it's frustrating to get dumped out to a shell sometimes when I'm on a slow connection.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您随时可以通过接听来取消紧急逃生
n
到两个提示。您可以调用
set-input-mode
或
set-quit-char
更改退出字符。您可以将Cg
保留为keyboard-quit
绑定,以仅转移紧急退出功能。我认为你不能关闭紧急退出字符,只需重新分配它即可。由于它必须是单个字符,因此不会留下许多替代位置来放置它。
You can always cancel the emergency escape by answering
n
to both prompts.You can call
set-input-mode
orset-quit-char
to change the quit character. You could leaveC-g
bound tokeyboard-quit
to only divert the emergency quit functionality.I don't think you can turn off the emergency quit character, just reassign it. And since it has to be a single character, that doesn't leave many alternate places to put it.