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: Vicente Hernando Ara
Subject: Re: session management with desktop and window configuration
Date: Thu, 31 Dec 2009 18:33:22 +0100

Hi,

may be I should start another thread but,

is it possible to save and restore not only windows but also processes
they were attached to? e.g: w3m or shell

On 31/12/2009, Richard Riley <rileyrgdev@googlemail.com> wrote:
> 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]