12

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

12

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

save-buffers-kill-emacs
Offer to save modified buffers and quit mg.

3
  • 2
    The apostrophe is just dodgy formatting on the web site you’re looking at; properly-formatted versions of the mg man page don’t have them (look at man mg on your system too). Commented Apr 8, 2021 at 21:36
  • 1
    Ty! Yeah man mg doesn't show that :)
    – ruohola
    Commented Apr 8, 2021 at 21:37
  • C-x means Control key + x key and C-c means Control key + c key. Commented Jul 9 at 13:05

You must log in to answer this question.

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