Borea Deitz
Borea Deitz

Reputation: 505

How do I exit Emacs from the terminal?

I just installed Emacs 26.3 on Ubuntu 20.04. I opened a buffer in the terminal, and I cannot close it. C-x C-c does nothing. f10 to activate the menu does not activate the menu.

I'm using a .emacs file that maps cut/copy/paste commands to the normal C-x/C-c/C-v. 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 C-x C-c. Also, I had the exact same problem before I installed the .emacs file on the new system.

How do I kill Emacs?

This question exists, but it has no useful answers.

Upvotes: 0

Views: 3266

Answers (1)

nichijou
nichijou

Reputation: 504

ESC x save-buffers-kill-terminal

OFC binding C-x will affect C-x C-c. You don't need to know anything about Emacs to realize the problem. Just think twice.

Upvotes: 1

Related Questions