GNU Screen and Tmux can make processes survive user's logging out, and resume when logging back again.
Can Emacs be used for the same purpose, and how?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityGNU Screen and Tmux can make processes survive user's logging out, and resume when logging back again.
Can Emacs be used for the same purpose, and how?
You can run emacs in server mode, and then connect and disconnect clients.
Each client you start (either graphic or on a terminal) will produce a new frame, normally opening a new file or buffer.
So it is similar to screen or tmux in the sense that you have the emacs process persistent across client connections. But you won't get the exact screen rendering each time.
I personally use screen, and launch emacs clients as needed.
emacs --daemon
from the screen session?
– Tyler
Apr 12 '16 at 17:14
--new-daemon
option that avoids daemonization of the process, that way something like screen/tmux or your init system can easily monitor it.
– wasamasa
Feb 9 '17 at 8:32
@Tim, I think you've answered your own question.
Running an emacsclient
/ daemon
from within an existing tmux
session
$ tmux attach
$ emacsclient -c -a ""
will reconnect you to the existing Emacs
deamon, on an attached (possibly remote) tmux
session.