Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am able to run emacs as server daemon and attach back to it on Linux.

Is it possible to start emacs as daemon on Linux, but attach back to it from Windows with a different client?

Emacs or xemacs, both are okay.

to be precise, I want to start a emacsclient windows client to connect to linux emacs server. so putty or exceed or screen is not precisely what I want to do.

is it possible.

share|improve this question

Start emacs within screen and (re-)connect via ssh (putty) and screen -x?

share|improve this answer


Verbatim from the emacs wiki:
Running emacs like a Daemon
This a new feature that is included in emacs-23.1.

Simple setup



in your .bashrc, or


in your .cshrc depending on your default shell.

After that using emacsclient (or emacsclient -t) will automatically start an Emacs in daemon mode and connect to it if one is not found running.

It has been thoroughly documented with specific instructions for numerous linux distributions in an easy to follow and understand way on the wiki, which is also the authoritative resource: http://www.emacswiki.org/emacs/EmacsAsDaemon

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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