I run Emacs on development host under X Window as:
$ emacs24
with ~/.emacs
:
(require 'server)
(server-start)
Next when I connect to Emacs as:
$ ssh -Y localhost
ssh$ emacsclient -c
C-x C-c
ssh$ exit
or as:
$ startx xterm -- `command -v Xnest` :1 -geometry 800x600
xnest$ emacsclient -c
C-x C-c
xnest$ exit
main Emacs exit.
I like ability to join to my Emacs session from remote host for getting working context immediately. But when I come to original host or try to re-establish X connection - I have to start new Emacs.
How to make Emacs live when I close remote X connection?
UPDATE I don't try --daemon
as think that (server-start)
are equivalent form.