如何退出 emacs,C x,C c 说 "Thou shall not quit!"
How to quit emacs, C x, C c says "Thou shall not quit!"
emacs 新用户。
加载了包含以下代码的配置文件。
现在每次我想退出 emacs 时,它都会显示 "Thou shall not quit!"
(global-set-key (kbd "C-x C-c") (bind (message "Thou shall not quit!")))
(after 'evil
(defadvice evil-quit (around dotemacs activate)
(message "Thou shall not quit!"))
(defadvice evil-quit-all (around dotemacs activate)
(message "Thou shall not quit!")))
这是配置文件的link。
enter link description here
所以总的来说,您有一个标准的 Emacs 绑定,它已经被破坏了,您不知道如何做它以前做的事情?
要找出默认绑定,您可以在没有初始化文件的情况下启动第二个 Emacs 实例,方法是 运行ning emacs -Q
然后使用 C-h[ 检查绑定=40=]kC-xC-c
那会告诉你:
C-x C-c runs the command save-buffers-kill-terminal
有了这些知识,您可以 return 到您的原始 Emacs 实例,然后手动对 运行 该命令执行此操作:
- M-x
save-buffers-kill-terminal
RET
或恢复全局绑定:
- M-x
global-set-key
RET C-xC-c save-buffers-kill-terminal
RET
emacs 新用户。 加载了包含以下代码的配置文件。 现在每次我想退出 emacs 时,它都会显示 "Thou shall not quit!"
(global-set-key (kbd "C-x C-c") (bind (message "Thou shall not quit!")))
(after 'evil
(defadvice evil-quit (around dotemacs activate)
(message "Thou shall not quit!"))
(defadvice evil-quit-all (around dotemacs activate)
(message "Thou shall not quit!")))
这是配置文件的link。 enter link description here
所以总的来说,您有一个标准的 Emacs 绑定,它已经被破坏了,您不知道如何做它以前做的事情?
要找出默认绑定,您可以在没有初始化文件的情况下启动第二个 Emacs 实例,方法是 运行ning emacs -Q
然后使用 C-h[ 检查绑定=40=]kC-xC-c
那会告诉你:
C-x C-c runs the command save-buffers-kill-terminal
有了这些知识,您可以 return 到您的原始 Emacs 实例,然后手动对 运行 该命令执行此操作:
- M-x
save-buffers-kill-terminal
RET
或恢复全局绑定:
- M-x
global-set-key
RET C-xC-csave-buffers-kill-terminal
RET