How do you run the previous command in emacs shell?
Posted
by Lidmith
on Super User
See other posts from Super User
or by Lidmith
Published on 2010-05-11T05:14:38Z
Indexed on
2010/05/11
5:25 UTC
Read the original article
Hit count: 219
I am in terminal mode on Ubuntu, and I'm running emacs with 2 buffers open, one is a ruby file, and the other is a shell (opened by typing M-x shell ), and when I switch to the shell buffer, I want to run the same command that I ran before. I would normally just hit the up arrow in a terminal window, but in emacs, it simply puts the cursor up one line.
Does anyone know of keystroke to run the previous shell command from within an emacs shell?
© Super User or respective owner