1

I'm wondering if it's possible to have a terminal windows running emacs talk to each other (running in a server environment)

For example:

  • Open an instance of emacs in one terminal window.
  • Open up a second terminal window to connect to the first one and display an output buffer (eg, *Messages*)
  • Any action on the first terminal will be outputted on the second terminal
0

What you describe is a standard server-client environment that is built in emacs. Just add into your emacs config this line:

(server-start)

This starts the emacs server when you first launch emacs. It works in both graphical emacs and within terminal.

Next you go to an other terminal window and launch emacsclient to connect to the server. If the first instance was graphical, use option -nw force opening inside the terminal. Now you have two views into same emacs instance and they naturally share buffers.

  • that was really easy to do. thanks! – zcaudate Sep 23 '18 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.