Recently, I'd wanted to commit to my git repository from within emacs. Instead of running some git mode commands, I opened up a terminal buffer and run git commit
inside. This works fine, except that the commit message editor is, of course, emacs. Out of habit, I tried to save-close the editor after inserting the commit message, but that closed my parent emacs...
Since I run emacs in client/server mode, I can simply reconnect and have all the buffers still open. But how do I close the child emacs (apart from killing it from within another terminal)?
In general, how do I send ctrl/meta to a program running in the terminal buffer?
C-x #
(server-edit
) (see manual)?