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

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

Re: Saving the frame layout between frames


From: Tim Visher
Subject: Re: Saving the frame layout between frames
Date: Sun, 27 Oct 2013 15:50:18 -0400

I'm not going to be too much help but winner-mode sounds like it does
most of what you're looking for so maybe look at how they do it?

http://www.emacswiki.org/emacs/WinnerMode

On Sun, Oct 27, 2013 at 3:10 PM, Alex Bennée <kernel-hacker@bennee.com> wrote:
> Hi,
>
> Following on from my previous adventures with chromebook.el I'm now
> trying to save the frame layout so when I create a new frame I can
> restore the layout of the buffers and windows as they where.
>
> I've been using:
>
> (setq crmbk-previous-frame-config (current-window-configuration))
>
> However when the new frame is created and I run:
>
> (when crmbk-previous-frame-config
>   (set-window-configuration crmbk-previous-frame-config))
>
> It's not working. If I run these commands from within a frame after
> messing around with the configuration it works as expected so I assume
> the breakage is caused by the fact the new frame context is incompatible
> (indeed winner-mode doesn't seem to save window configuration between
> frame instances).
>
> So is there any way around this?
>
> --
> Alex Bennée
>
>



reply via email to

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