Closed fu123456 closed 3 years ago
maybe (wg-save-session t)
in auto-save-hook
?
I add the below code to my config:
;; auto save wg-save-session
(add-hook 'auto-save-hook 'wg-save-session t)
But it does not work.
Sorry, it's my typo, should be after-save-hook
,
(defun after-save-hook-setup ()
(wg-save-session t))
(add-hook 'after-save-hook 'after-save-hook-setup)
Personally I don't like auto save the sub-windows layout. I might change the layout temporarily. The temp layout should not be saved.
Now it's all handled automatically.
It seems to only execute "wg-save-session" command by my hand, which can save sessions. So I want to automatically auto save sesstions to my file ".emacs_workgroup". My config is
It does not work. How to solve this issue.