From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: split buffers Date: Wed, 21 Jul 2010 21:29:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <47be08be-25b1-4396-b0a2-0dff98de85b9@p22g2000pre.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 1291848929 32590 80.91.229.12 (8 Dec 2010 22:55:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 22:55:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 23:55:24 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 1PQSuy-0004nR-8a for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:55:24 +0100 Original-Received: from localhost ([127.0.0.1]:42852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQSux-0002r1-Df for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:55:23 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!p22g2000pre.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 72 Original-NNTP-Posting-Host: 75.36.158.158 Original-X-Trace: posting.google.com 1279772999 8584 127.0.0.1 (22 Jul 2010 04:29:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 22 Jul 2010 04:29:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p22g2000pre.googlegroups.com; posting-host=75.36.158.158; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTbBT5/5.8.0.12304),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:179905 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:76168 Archived-At: 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)