Take the 2-minute tour ×
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.

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
add comment

2 Answers 2

Yes.

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

Simple setup

Put

export ALTERNATE_EDITOR=""

in your .bashrc, or

setenv ALTERNATE_EDITOR ""

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.