[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Expand/unexpand window possible?
From: |
Anders Wirzenius |
Subject: |
Re: Expand/unexpand window possible? |
Date: |
Thu, 12 Mar 2009 12:51:42 GMT |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (windows-nt) |
cmic@live.fr writes:
> On 12 mar, 12:07, Lars Haugseth <n...@larshaugseth.com> wrote:
>> * p...@informatimago.com (Pascal J. Bourguignon) wrote:
>>
>>
>>
>>
>>
>> > Lars Haugseth <n...@larshaugseth.com> writes:
>>
>> > > When typing C-x 1 in a multi-window frame, the current window will fill
>> > > the entire frame, but all other windows will be deleted so that there
>> > > will
>> > > be no going back to the previous multi-window setup. Is there any way to
>> > > achieve this expand/unexpand functionality without major elisp wizardry
>> > > on
>> > > my part?
>>
>> > What about minor elisp wizardry on MY part?
>>
>> > (defun temporarily-expand ()
>> > (interactive)
>> > (save-window-excursion
>> > (delete-other-windows)
>> > (message "Finish with %s"
>> > (describe-key-briefly (first (where-is-internal
>> > 'abort-recursive-edit))))
>> > (recursive-edit)))
>>
>> Lovely! Much appreciated.
>
> huh. Sorry, but [as a neophyt] how to use this snippet of code?
> I did put it in .emacs, then open 2 windows, then M-x temporarily-
> expand
> but what else ?
>
> rgds
> --
> michel marcon aka cmic
>>
>> --
>> Lars Haugseth
>>
>> "If anyone disagrees with anything I say, I am quite prepared not only to
>> retract it, but also to deny under oath that I ever said it." -Tom Lehrer
M-x abort-recursive-edit
You may want to assign those commands to some key.
--
Anders
Re: Expand/unexpand window possible?, Marc Tfardy, 2009/03/12
Re: Expand/unexpand window possible?, Andy Stewart, 2009/03/12
Re: Expand/unexpand window possible?, Bernardo, 2009/03/12
Re: Expand/unexpand window possible?, Jim Burton, 2009/03/13
Re: Expand/unexpand window possible?, Lars Haugseth, 2009/03/16