Remix.run Logo
SoftTalker 3 hours ago

Emacs itself can run as a client and server. To start the server:

  emacs --daemon
Then use `emacsclient` to connect to it. All `emacsclient` instances whether in terminals or GUI are using the same server and can access the same open files and buffers.

Unfortunately it only works locally. I've tried to forward the emacs server socket over ssh to a remote client and it doesn't work.

MarsIronPI 4 minutes ago | parent | next [-]

[delayed]

rozularen 3 hours ago | parent | prev [-]

could you see the reason it didn't work?

SoftTalker 2 hours ago | parent [-]

It's been a number of years, and all I really remember is coming to the conclusion that "emacsclient only works with a local server." It uses a domain socket for this, but forwarding that from a remote server doesn't seem to be enough.

Simply editing a remote file over an ssh connection is easy enough using TRAMP, but that isn't the same as accessing existing buffers in a remote server.