I am using emacs 24.3 (ubuntu 14.10) and would like the daemon to participate in the graphical desktop session lifecycle while using desktop-mode
. I went through http://www.emacswiki.org/emacs/EmacsAsDaemon but it still does not play nice for me. One problem is that the daemon SIGTERM termination does not clean up .emacs.desktop.lock
so the next start will refuse to pick up the saved state.
Does anyone have a recipe to make emacs daemon + desktop mode play nice with the graphical desktop session?
As a sidenote: Sending SIGHUP frequently crashes emacs for me.