Closed gilbertw1 closed 7 years ago
It's probably our (Spacemacs') problem since we don't run that hook when exiting.
Ok, actually I think now that the right way will be to save perspectives in both kill-emacs-query-functions(try to save and query user on failure, remove emacs-kill-hook on success) and emacs-kill-hook(try to save and exit ignoring errors).
Awesome, thank you! Just tested it locally and it works perfectly.
I recently noticed that perspectives have stopped auto saving altogether in Spacemacs. After some digging I've tracked down this commit as the source of the problem.
After reverting this commit perspectives have again begun to save again properly in Spacemacs. I'm not yet sure if this is a bug that needs to be fixed in this project or spacemacs, I've created bug there as well.
Thanks!