Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Emacsclient to remote machine

155 views
Skip to first unread message

Eric

unread,
Sep 16, 2008, 12:00:38 PM9/16/08
to
At work, I use a very slow machine. However, a fast machine exists
elsewhere. "Snail" (my machine) is very slow, while "Rabbit" is very
fast. I can jump to Rabbit and execute whatever I like.

I can start Emacs on Rabbit and then give (server-start) after which I
can use emacsclient on Rabbit to have Emacs open whatever I ask.

I'd like to be able to use emacsclient from Snail and have the Emacs
running on Rabbit pick it up. The problem is that emacsclient doesn't
seem to be able to find the Emacs server.

The documentation indicates that the Emacs Server should place some
sort of file containing connection information in ~/.emacs.d/server
when it starts up. However, that directory doesn't exist for me. Is
there something I need to do to ensure this file is created?

Or is it even possible to do what I want?

(I could use Rabbit exclusively, but there are a few reasons I'd like
to avoid doing so if possible.)

Thanks,
Eric

Eric

unread,
Sep 16, 2008, 12:47:09 PM9/16/08
to

Solution! Digging around in server.el gave me the tips I needed.
Always look at the source first, right?

What needs to happen:
;set server-host to be the name of the machine Emacs server will run
on
(setq server-host "Rabbit")
;set server-use-tcp to t
(setq server-use-tcp t)
(server-start)

Then the file is created and I can give emacsclient from Snail.

0 new messages