1

I would like to use emacs across multiple monitors: one monitor would have code the other would have the R session that will be processing the code submissions. I am in a Windows machine logging into a server via SSH. I am using emacs with an Xwindow (the lag is just too much with X on - therefore I run emacs -nw). Is this possible?

EDIT: When I ssh into my cluster, two terminal sessions may physically be connected to two different nodes on the cluster (two different login nodes)

1 Answer 1

5

In your situation, I would think a good way to do it would be to use emacs in server mode, and have two X terminals (one in each screen), each running a frame attached to the same server.

  1. open the first terminal, ssh to the host as usual and run: emacs -nw
  2. start the server in yout emacs instance: M-xserver-startRET
  3. open a second terminal, ssh to the host and run: emacsclient -nw

You now have two distinct emacs frames sharing the same buffers, which allows you to do pretty much everything you want.

2
  • i get teh following error: emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". emacsclient: No socket or alternate editor. Please use: --socket-name --server-file (or environment variable EMACS_SERVER_FILE) --alternate-editor (or environment variable ALTERNATE_EDITOR)
    – Alex
    May 17, 2013 at 6:42
  • This problem is likely related to the information you added in the EDIT to your question: if emacsclient does not run on the same system/node, it will not find the server. After opening the second ssh connection to the cluster, try doing one more ssh connection to the same node as your emacs server. May 18, 2013 at 17:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .