For session management, I was happy with inbuilt desktop.el except that it could not retain the term/shell buffers. Everytime I quit emacs, it asked to kill the term/shells. Then I read the ability of desktop+ to retain the term/shell, thus installed it through M-x package-install after going through its github doc. I removed the line desktop-save-mode from init file to stop loading the desktop.el sessions. Also, as suggested in the github page I have put
(setq desktop+-special-buffer-handlers '(term-mode compilation-mode org-agenda-mode indirect-buffer Man-mode shell-mode)) in the init file..
I have 2 questions
In new emacs session (having term/shell windows), I saved the session with
desktop+create, verified its existence on the disk, but when quitting emacs, inminibuffer, I still get the same message as with desktop (to kill the running processes i.e. the term/shell buffers). How can I retain the session term/shell windows as mentioned in the doc?Another question is that I need to
desktop+loadafter opening emacs to load the session even of the default dir. What can I add in the init file to load the default session and not a blank emacs. I trieddesktop+-save-mode 1as implicitly mentioned in the github page but this gives as error loading the init file. Even puttting(require 'desktop+)does not load the saved session.
Before asking here, I opened an issue on the github, but it hasn't been answered yet.
Desktop sessions by default save only buffers associated to "real" files. Desktop+ extends this by handling also "special buffers". The list of currently supported special buffer types is: compilation buffers (in compilation-mode) terminal buffers (in term-mode) org agenda & todo lists (in org-agenda-mode) indirect buffers (a.k.a clones). man pages (in Man-mode) shell buffers (in shell-mode)