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: Richard Riley
Subject: Re: session management with desktop and window configuration
Date: Thu, 31 Dec 2009 17:32:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Thu, Dec 31, 2009 at 5:16 PM, Richard Riley <rileyrgdev@gmail.com> wrote:
>> Lennart Borgman <lennart.borgman@gmail.com> 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?
>

I googled it up when looking for a way to save window layout.

http://linux.about.com/cs/linux101/g/windows-el.htm





reply via email to

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