From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Re: split screen horizontally into three equally spaced sections Date: Fri, 10 Oct 2008 12:23:46 +0200 Organization: Sebastien Vauban Message-ID: <87d4i86959.fsf@mundaneum.com> References: <87bpxslyal.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1223635318 5007 80.91.229.12 (10 Oct 2008 10:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 10:41:58 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Oct 10 12:42:54 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KoFSK-0003H2-OQ for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 12:42:49 +0200 Original-Received: from localhost ([127.0.0.1]:54879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoFRE-0008RB-Uu for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 06:41:41 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!feeder2.ecngs.de!ecngs!feeder.ecngs.de!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Www-site: Under construction... X-Archive: encrypt User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:ePpJzbMnjhxhdJ1EXOqbzs/Lq/o= Original-Lines: 64 Original-NNTP-Posting-Date: 10 Oct 2008 10:23:47 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1223634227 reader0.news.be.easynet.net 1613 [::ffff:81.188.7.152]:41601 Original-X-Complaints-To: abuse-sq41lydJq48WI+UwmH2aBQ@public.gmane.org Original-Xref: news.stanford.edu gnu.emacs.help:163318 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:58660 Archived-At: 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 --=20 S=C3=A9bastien=C2=A0Vauban