I tried to use one of my Git aliases and accidentally opened the mg editor. I tried a lof of different keys and nothing seemed to close it. I eventually just used ctrlz to to send it to the background and then killed it with kill %1.

After that I went to check the manpages https://linux.die.net/man/1/mg, but the only quit related commands don't seem to do much:

C-g' keyboard-quit
C-x C-g' keyboard-quit

I'm probably missing something obvious, but how can it be closed?

1 Answer 1


Ok, so I'm not sure what the ' means here, but pressing ctrlx and ctrlc actually worked:

C-x C-c' save-buffers-kill-emacs

Offer to save modified buffers and quit mg.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .