From: "Sébastien Vauban" <zthjwsqqafhv-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Re: split screen horizontally into three equally spaced sections
Date: Fri, 10 Oct 2008 12:23:46 +0200 [thread overview]
Message-ID: <87d4i86959.fsf@mundaneum.com> (raw)
In-Reply-To: mailman.767.1223627907.25473.help-gnu-emacs@gnu.org
Hello,
First thanks to Harven and Lennart for their answers, and to
you, Bastien, as well...
FYI, I've tried the transpose window stuff from EmacsWiki, and
it perfectly works...
>> Is there some already existing code that would allow to "switch"
>> from a vertical layout of windows to an horizontal one, and vice
>> versa?
>>
>> For example:
>>
>> --------- ---------
>> | A | | | |
>> --------- ----> | A | B |
>> | B | | | |
>> --------- ---------
>
> Not yet. But the switch above is just M-x windresize RET 0 3 RET.
Thanks for the example. It wasn't that clear for me, even after
looking through winresize.el.
> I can't really imagine a situation where it's often useful to switch
> from a horizontal layout to a vertical one, can you give me examples?
Of course, you have the ediffing case where I want to easily
switch from one configuration to the other, depending on what
I'm comparing and how (having my Emacs full screen or not). But
there is already a key binding for that.
Another case is, for example, when I'm reading mail. Sometimes
I'd like to pass from the first screen configuration above
(which is my default one, with Gnus) to the second, in a matter
of seconds, and without the mouse).
In that case, I first force full screen (under Ubuntu) with `C-c z':
--8<---------------cut here---------------start------------->8---
(unless running-ms-windows
(defun my-toggle-full-screen ()
"Toggle between full screen and partial screen display on X11;
courtesy of http://www.emacswiki.org/cgi-bin/wiki/FullScreen"
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_FULLSCREEN" 0)))
(global-set-key [(control c) (z)] 'my-toggle-full-screen))
--8<---------------cut here---------------end--------------->8---
and then I have to switch the split of the windows, which was
the missing piece of my puzzle.
Does this make sense?
Best regards,
Seb
--
Sébastien Vauban
prev parent reply other threads:[~2008-10-10 10:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-14 11:52 split screen horizontally into three equally spaced sections Gil
2008-09-14 12:09 ` harven
2008-09-14 12:48 ` Rupert Swarbrick
2008-09-14 16:01 ` Peter Dyballa
2008-09-16 5:22 ` Allan Gottlieb
[not found] ` <mailman.19329.1221542577.18990.help-gnu-emacs@gnu.org>
2008-10-07 22:26 ` maps.automation58
2008-10-08 19:15 ` Allan Gottlieb
2008-10-08 22:01 ` Bastien
[not found] ` <mailman.622.1223503318.25473.help-gnu-emacs@gnu.org>
2008-10-10 7:11 ` Sébastien Vauban
2008-10-10 8:00 ` harven
2008-10-10 8:02 ` Lennart Borgman (gmail)
2008-10-10 15:53 ` Nikolaj Schumacher
2008-10-10 16:10 ` Lennart Borgman (gmail)
2008-10-10 19:04 ` Nikolaj Schumacher
2008-10-10 19:36 ` Lennart Borgman
2008-10-11 12:57 ` Nikolaj Schumacher
[not found] ` <mailman.852.1223729847.25473.help-gnu-emacs@gnu.org>
2008-10-11 14:07 ` Andreas Politz
2008-10-10 8:38 ` Bastien
[not found] ` <mailman.767.1223627907.25473.help-gnu-emacs@gnu.org>
2008-10-10 10:23 ` Sébastien Vauban [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d4i86959.fsf@mundaneum.com \
--to=zthjwsqqafhv-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).