workgroups2
workgroups2 copied to clipboard
workgroups2 cannot save sessions in real time
It can not save the current buffer in real time, for instance, I open several sub-windows, however, there exists only one window in the session after restarting Emacs. I want to save the session containing several sub-windows in real time. I add the following code:
;; auto save wg-save-session
;; to see @https://github.com/pashinin/workgroups2/issues/93
(defun after-save-hook-setup ()
(wg-save-session t))
(add-hook 'after-save-hook 'after-save-hook-setup)
But now It does not work. In addition, does it support Dired and other buffer to be save in a session?
Here is latest code,
(defun wg-save-session (&optional workgroup-name)
"Save the current Workgroups session if it's been modified.
When WORKGROUP-NAME is not nil, only save the work group with this name."
)