I'm in a situation where I have to ssh into a machine and do all of my coding on there. For a while I would ssh in and then use tmux and emacs -nw mode. Recently, I discovered the term command. Now instead of using tmux, I open up normal Emacs on my desktop and use term to ssh in.
Once I'm in, I run emacs -nw from within term within Emacs on my desktop. This works great, and I have all of my pretty colors. The only problem is, I can't figure out how to cleanly close the emacs -nw within the Emacs on my desktop. C-x C-c does not work, as expected.
How can I close the innermost Emacs, and get back to term? Is there a better way to edit files via ssh?