help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: session management with desktop and window configuration


From: Lennart Borgman
Subject: Re: session management with desktop and window configuration
Date: Thu, 31 Dec 2009 17:22:38 +0100

On Thu, Dec 31, 2009 at 5:16 PM, Richard Riley <address@hidden> wrote:
> Lennart Borgman <address@hidden> writes:
>
>>>
>>> Thanks for your reply. So, I wrote some functions using revive.el:
>>>
>>> (require 'revive)
>>> (defun kiwon/save-window-configuration ()
>>>  (write-region (concat "(restore-window-configuration '"
>>>                        (prin1-to-string 
>>> (current-window-configuration-printable))
>>>                        ")")
>>>                nil ".emacs.restore-window.el"))
>>> (defun kiwon/restore-window-configuration ()
>>>  (when (file-exists-p ".emacs.restore-window.el")
>>>    (load-file ".emacs.restore-window.el")))
>>>
>>> (add-hook 'desktop-save-hook 'kiwon/save-window-configuration)
>>> (add-hook 'desktop-after-read-hook 'kiwon/restore-window-configuration)
>>>
>>> It seems to be enough to what I wanted. :)
>>
>> Nice. I have seen revive but have not looked into it. There is also
>> winsav.el in nXhtml that can save and restore frames and windows.
>> (Martin, I am a bit surprised that you do not know about it. Didn't I
>> tell about this before?)
>>
>
> windows.el does for me.


What is windows.el, where can we find it?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]