Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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
    
This question has been reposted on emacs.stackexchange.com/questions/15144/… . It has better/newer answers there.Perhaps consider deleting this one? – Alex Stragies Jul 6 at 22:48
    
It's not cross-posting if it's done by different users (especially if they're years apart).  While identifying (and linking to) the similar question is useful, I don't see any reason to close this question, let alone delete it.  (After all, if people search U&L for this question, we want that they should find something.) – G-Man Jul 7 at 5:03

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

share|improve this answer

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

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.