user567879
user567879

Reputation: 5349

How to exit from emacs shell

I gave M-x shell to get Linux shell. How to go back to the current document from there

Upvotes: 14

Views: 11895

Answers (2)

aartist
aartist

Reputation: 3236

You can run C-x b to switch to previous buffer. You can also do C-x C-b and switch to whichever buffer you need. Read tutorial with C-h t and see the Buffers section.

Upvotes: 1

Jon Lin
Jon Lin

Reputation: 143966

You can switch the buffer back to the one you were at previously by: C-x b and enter

Or if you're done with the shell, you can type exit to stop the shell and kill the buffer by: C-x k

Upvotes: 18

Related Questions