workgroups2 icon indicating copy to clipboard operation
workgroups2 copied to clipboard

workgroups2 cannot save sessions in real time

Open fu123456 opened this issue 3 years ago • 1 comments

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?

fu123456 avatar Mar 06 '22 07:03 fu123456

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."

)

redguardtoo avatar Mar 06 '22 13:03 redguardtoo