Open Addlai opened 2 weeks ago
Robert Morelli @.***> writes:
- ( ) text/plain (*) text/html
After restarting Emacs, I find no org-mode buffers are ever restored. By contrast, most or all other buffers seems to be retained. Is there a reason for this?
Because org buffers are in
psession-save-buffers-unwanted-buffers-regexp
. I don't remember
exactly why by default org buffers are not saved, but I believe it is
safe to restore them. The reason is perhaps something was asked when
restoring org buffers and it was a problem with emacs --daemon and/or
with psession-autosave-mode
which is async as well, but I don't know
if this is still true. anyway to restore your org buffers:
(setq psession-save-buffers-unwanted-buffers-regexp "\(diary\|\.jpg\|\.png\|\image-native-display\\)$")
I will do this as well on my side and if there is no problems I will make this the default.
Thanks.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.*Message ID: @.***>
-- Thierry
OK, excellent. I suspected there might be such a variable, but somehow missed it.
As a booster of rx notation, I put
(setq psession-save-buffers-unwanted-buffers-regexp (rx (or (literal ".jpg") (literal ".png") (literal "*image-native-display*") ) line-end))
and it's working.
Thank you
After restarting Emacs, I find no org-mode buffers are ever restored. By contrast, most or all other buffers seems to be retained. Is there a reason for this?