garg
garg

Reputation: 1255

How to switch split screen Emacs where one screen is the editor while the other is terminal emulator?

I have ssh'ed to a remote machine and started emacs. I opened one small python application, and then split the screen into two, and M-x terminal-emulator in the other. I would like to edit the script in one section, then press C-x o and run it on the other section. Unfortunately, I can't seem to C-x o away from the terminal emulator and it just ends up typing x o.

Is there a better quick way of doing what I'm trying to do? Or is there a keystroke that will let me switch back to the editor section?

Edit: I just tried doing 'M-x shell', instead of 'M-x term', and that allows me to use C-x o to switch.

Upvotes: 3

Views: 5374

Answers (3)

feverDream
feverDream

Reputation: 283

I found this post and I customized the .emacs file accordingly. http://nex-3.com/posts/45-efficient-window-switching-in-emacs

Upvotes: 0

user49117
user49117

Reputation: 786

While at the * terminal* window, C-^ o to switch to other window, and C-^ C-h for more help.

Upvotes: 3

Mark Jones
Mark Jones

Reputation: 402

ALT-X other-window

C-TAB also works locally. Will that translate over SSH? If not, bind other-window to another key that will go over SSH.

Upvotes: 1

Related Questions