简体   繁体   English

如何从终端退出 Emacs?

[英]How do I exit Emacs from the terminal?

I just installed Emacs 26.3 on Ubuntu 20.04.我刚刚在 Ubuntu 20.04 上安装了 Emacs 26.3。 I opened a buffer in the terminal, and I cannot close it.我在终端中打开了一个缓冲区,但无法关闭它。 Cx Cc does nothing. Cx Cc什么都不做。 f10 to activate the menu does not activate the menu. f10激活菜单不激活菜单。

I'm using a .emacs file that maps cut/copy/paste commands to the normal Cx/Cc/Cv .我正在使用.emacs文件,该文件将剪切/复制/粘贴命令映射到正常的Cx/Cc/Cv I don't think that this can affect the issue, however, because I have the exact same setup (including the same .emacs file) on by Emacs 24.5/Ubuntu 16.04 laptop, and it has no problem exiting with Cx Cc .但是,我认为这不会影响问题,因为我在 Emacs 24.5/Ubuntu 16.04 笔记本电脑上具有完全相同的设置(包括相同的.emacs文件),并且使用Cx Cc退出没有问题。 Also, I had the exact same problem before I installed the .emacs file on the new system.另外,在新系统上安装.emacs文件之前,我遇到了完全相同的问题。

How do I kill Emacs?如何杀死 Emacs?

This question exists, but it has no useful answers. 这个问题存在,但没有有用的答案。

ESC x save-buffers-kill-terminal

OFC binding Cx will affect Cx Cc . OFC 绑定Cx将影响Cx Cc You don't need to know anything about Emacs to realize the problem.您无需了解有关 Emacs 的任何信息即可实现该问题。 Just think twice.请三思而后行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM