From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: AmosBurke Newsgroups: gmane.emacs.help Subject: Re: split buffers Date: Wed, 21 Jul 2010 21:25:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: <22fa3ab5-f8b6-4212-bb33-ed6648b7a1fc@q21g2000prm.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291947342 13530 80.91.229.12 (10 Dec 2010 02:15:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 02:15:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 03:15:36 2010 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.69) (envelope-from ) id 1PQsWF-0007as-Ri for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 03:15:36 +0100 Original-Received: from localhost ([127.0.0.1]:35444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQsPo-0007lC-0Z for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 21:08:56 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!q21g2000prm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 79 Original-NNTP-Posting-Host: 75.36.158.158 Original-X-Trace: posting.google.com 1279772756 1740 127.0.0.1 (22 Jul 2010 04:25:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 22 Jul 2010 04:25:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q21g2000prm.googlegroups.com; posting-host=75.36.158.158; posting-account=L30LNQkAAADpqC1wXjYXtQTYNn-QuLPc User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:179904 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:23:46 -0500 X-BeenThere: help-gnu-emacs@gnu.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@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77169 Archived-At: > > I'm happy doing vulcan deathgrip chords in order to change just > the buffer in a frame, versus the whole frame full of buffers to > another frame with different buffers, but I need it all to exist in > one physical window. > There are two commands which seem to save and restore buffer/window- configurations in a frame that might suffice for what you want: window-configuration-to-register (bound to Control-x r w) to save it and jump-to-register (bound to Control-x r j) So if you get a particular buffer/window-configuration set up you can save it with c-x r w (you have to then type a number for a specific register e.g. 1, when prompted) Then you can set up another buffer/window-configuration and save that with c-x r w (giving a different register number when prompted) Then you restore them at any time with c-x r j (and register number desired at the prompt) You can simplify the keystroke combinations and typing by adding something like this to your .emacs file: (defun SaveWinConfigToRegister1 () "save window configuration to register 1" (interactive) (window-configuration-to-register 1) ) (defun RestoreRegister1 () "restore configuration from register 1" (interactive) (jump-to-register 1) ) (defun SaveWinConfigToRegister2 () "save window configuration to register 2" (interactive) (window-configuration-to-register 2) ) (defun RestoreRegister2 () "restore configuration from register 2" (interactive) (jump-to-register 2) ) (defun SaveWinConfigToRegister3 () "save window configuration to register 3" (interactive) (window-configuration-to-register 3) ) (defun RestoreRegister3 () "restore configuration from register 3" (interactive) (jump-to-register 3) ) ; to save window configuation to register 1 (global-set-key (kbd "") 'SaveWinConfigToRegister1) ; to restore window configuration saved in register 1 (global-set-key (kbd "") 'RestoreRegister1) ; to save window configuation to register 2 (global-set-key (kbd "") 'SaveWinConfigToRegister2) ; to restore window configuration saved in register 2 (global-set-key (kbd "") 'RestoreRegister2) (global-set-key (kbd "") 'SaveWinConfigToRegister3) (global-set-key (kbd "") 'RestoreRegister3)