help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using tramp to connect to a remote emacs session


From: Michael Albinus
Subject: Re: Using tramp to connect to a remote emacs session
Date: Thu, 03 Sep 2009 15:08:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> Hi everyone,

Hi,

> I usually have to connect to my lab using tramp (tramp-default-method is 
> ssh) when I am working from home. Since I go back and forth a lot, I 
> have to start a session every time. Is it possible for me to run 
> emacs-server on my lab machine and connect to that using tramp from my 
> home? That would save me a lot of time (mostly annoyance though ;) ) in 
> starting a new session.

Since you are not the first one who has asked, I've just added the
following to the Tramp manual (Frequently Asked Questions):

---
* How can I use TRAMP to connect to a remote GNU Emacs session?

  You can configure Emacs Client doing this.  On the remote host,
  you start the Emacs Server:

       (require 'server)
       (setq server-host (system-name)
             server-use-tcp t)
       (server-start)

  Make sure, that the result of `(system-name)' can be resolved on
  your local host; otherwise you might use a hard coded IP address.

  The resulting file `~/.emacs.d/server/server' must be copied to
  your local host, at the same location.  You can call then the
  Emacs Client from the command line:

       emacsclient /ssh:user@host:/file/to/edit

  `user' and `host' shall be related to your local host.
---

Best regards, Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]