0

I'm using persp-mode to save my workspace/desktop/opened buffers on Emacs close and restore it on Emacs start (configured via doom-emacs. However, sometimes I can't properly shutdown Emacs (e.g. laptop's sleep failure, empty battery etc.), so I would like persp-mode to save the workspace on every buffer list change. I did not find an appropriate configuration option in the persp-mode.el, but it's probably hackable, but I have no clue where to start looking for the right hook.

So how can I save my desktop on every change?

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.