I have the following on my .emacs
file:
(desktop-save-mode 1)
(setq desktop-dirname "~/.emacs.d/desktops/default/"
desktop-base-file-name "emacs.desktop"
desktop-base-lock-name "lock"
desktop-path (list desktop-dirname)
desktop-load-locked-desktop t)
I usually start an Emacs server server mode and then call emacsclient -c
to start a session.
I think my
locks
are not being released correctly when I close my Emacs client or server (to patch this problem, I am settingdesktop-load-locked-desktop
tot
above). As far as I understand,M-x kill-emacs
kills the server whileC-x C-c
kills the client. But when does Emacs save the desktop?, when killing the server or when killing the client?When I reload my desktop, Emacs does not restore any frame splits. Can Emacs desktop save splits? If not, are there any alternatives to save and restore them?
This is all on Emacs 24.2.1 (latest stable version when the question was asked)