From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Samuel Banya" Newsgroups: gmane.emacs.help Subject: Re: Swap windows in a frame Date: Sun, 09 Jan 2022 23:29:20 -0500 Message-ID: <06280c73-275b-4e87-8efa-9ebbc032a3b3@www.fastmail.com> References: <87y23ojlog.fsf@codeisgreat.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33982"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4527-g032417b6d6-fm-20220109.002-g032417b6 To: "Emanuel Berg" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 10 05:31:11 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6mKt-0008iB-5T for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 05:31:11 +0100 Original-Received: from localhost ([::1]:36080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6mKr-0002Ga-Um for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 23:31:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6mK7-0002G0-Ml for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 23:30:28 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:40793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6mK5-0004LW-ST for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 23:30:23 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id EB2385C00D9 for ; Sun, 9 Jan 2022 23:30:20 -0500 (EST) Original-Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Sun, 09 Jan 2022 23:30:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=Lo6+CgGqPLXC12PPDPAl+e0vWRRvMnw f2eas9+/qqRI=; b=mD9Zrc3D/gVQt46kIGYaHEI8GMuUQfwGp7xnXjgdnmOZlbV ADTd4OBjYy9v7vSt01ncgbz+M9E7GSPN7PEUc5jDrYHkFiT6mv6MZWZPLcLZamEa udMzaGsUcVCtvEYNs3I1EK6qprHrX6dWUORDn+YB6yvwdaYIcNujvtLwB2s8LqYf vESAiC55N0yhX8mBRLQ3vpv9rFCrxExYmU2fTdYhWRHIn/QVrPq+XXgQMTu7khrO R7wCL1vt+LDdA5E7LtUuPS7wwC9kBKZz2uP5hqlUUtPQEUsGEgDfe6qTgv90NXJ+ O7GVONfQTiE925LzehZlcdHF82RQGvJD3MFK68w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Lo6+Cg GqPLXC12PPDPAl+e0vWRRvMnwf2eas9+/qqRI=; b=L6WE7WRaOxI/wxIkpvSCQA AP/I8gRXwMznBvrqFbzwU9N/piKBhmniyxPb2mxmprTGmeLlG/JRrSiDUdFiscjb Ji1Nc5DuNzpQM6nF6elrWF+krR9YmyeA1l070ihBEPUOTjyI1cGl/9m7maEgu3CC NNGQeYr8gztFfc+GVprro6bvi0BU0tvYASFuhNbVFlaldOxVg448YC2OYnq20D55 Yh3nLdcDgrbFWb8HDsQ2buecORrvbEVd3eBdHMnuZ74BOWP/IO0G9Sq8wv81Uwpq ZnC1NOt7kX4Sf+DBdoXT52o0RyMlhlOvkDnevKx1C02316Kb2N58e/+omwkTUg4Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudegledgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpefofg ggkfgjfhffhffvufgtsegrtderreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghn higrfdcuoehssggrnhihrgesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrh hnpeevteetffehuedvffekvdfhudffjeduieffvddtheeukeetveevudelkefhheefkeen ucffohhmrghinhepmhhushhimhgrthhitgdrgiihiidptghonhhfihhguhhrrghtihhonh drohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehssggrnhihrgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id AFA52F60075; Sun, 9 Jan 2022 23:30:20 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <87y23ojlog.fsf@codeisgreat.org> Received-SPF: pass client-ip=66.111.4.25; envelope-from=sbanya@fastmail.com; helo=out1-smtp.messagingengine.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1.859, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135165 Archived-At: Not sure if it helps, but take a look at my config, as you're going to probably have to make some custom Elisp function to do some good swapping. Download my config and open it up in Org Mode, and find the section on window management, as I have a few swapping functions you might want to steal: https://git.musimatic.xyz/dotfiles/tree/emacs/.emacs.d More specifically, here's my config: https://git.musimatic.xyz/dotfiles/tree/emacs/.emacs.d/configuration.org Sincerely, Sam On Sun, Jan 9, 2022, at 10:48 PM, Pankaj Jangid wrote: > I have two windows in a frame. Is there a command to swap their > location? > > I have a wide configuration and windows are left and right. Left is > where I work mostly and is in front of eyes. Right is for reference and > for occasional use. Sometimes, due to some commands, the work window > goes to right. And I want swap its location with the other buffer > window. How can I do that? > > Regards > Pankaj > > >