all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacsclient to remote machine
@ 2008-09-16 16:00 Eric
  2008-09-16 16:47 ` Eric
  0 siblings, 1 reply; 2+ messages in thread
From: Eric @ 2008-09-16 16:00 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacsclient to remote machine
  2008-09-16 16:00 Emacsclient to remote machine Eric
@ 2008-09-16 16:47 ` Eric
  0 siblings, 0 replies; 2+ messages in thread
From: Eric @ 2008-09-16 16:47 UTC (permalink / raw)
  To: help-gnu-emacs

On Sep 16, 11:00 am, Eric <etkl...@gmail.com> wrote:
> 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

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-16 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 16:00 Emacsclient to remote machine Eric
2008-09-16 16:47 ` Eric

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.