From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15814 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.user Subject: Re: Preserving window layout? Date: Fri, 21 Sep 2012 09:59:16 +0800 Message-ID: <87ipb8w2yz.fsf@ericabrahamsen.net> References: <87sjactsa3.fsf@gavenkoa.example.com> <87boh0trjk.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1348192773 22800 80.91.229.3 (21 Sep 2012 01:59:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2012 01:59:33 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Sep 21 03:59:38 2012 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TEsWk-0003iy-I6 for gegu-info-gnus-english@m.gmane.org; Fri, 21 Sep 2012 03:59:34 +0200 Original-Received: from localhost ([::1]:41258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEsWg-0007tN-9S for gegu-info-gnus-english@m.gmane.org; Thu, 20 Sep 2012 21:59:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEsWd-0007ri-Fe for info-gnus-english@gnu.org; Thu, 20 Sep 2012 21:59:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEsWc-00070w-3L for info-gnus-english@gnu.org; Thu, 20 Sep 2012 21:59:27 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEsWb-00070s-Sd for info-gnus-english@gnu.org; Thu, 20 Sep 2012 21:59:26 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TEsWd-0003aj-Uk for info-gnus-english@gnu.org; Fri, 21 Sep 2012 03:59:27 +0200 Original-Received: from 50-56-99-223.static.cloud-ips.com ([50.56.99.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Sep 2012 03:59:27 +0200 Original-Received: from eric by 50-56-99-223.static.cloud-ips.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Sep 2012 03:59:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 50-56-99-223.static.cloud-ips.com X-Pgp-Key: http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xC98BAE7B99D0D373 X-Pgp-Fingerprint: 8E19 28A9 2B51 0C67 565D DB34 C98B AE7B 99D0 D373 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:UDG5yWoXOm25YXabi/xbFrPye6w= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:15814 Archived-At: On Fri, Sep 21 2012, Oleksandr Gavenko wrote: > On 2012-09-20, Oleksandr Gavenko wrote: >> I think you can try to hack some Elisp code with use of: >> >> (setq my-window-conf (current-window-configuration)) >> (gnus) >> (set-window-configuration my-window-conf) ;; restore window layout and >> ;; selected buffers >> >> http://www.gnu.org/software/emacs/manual/html_node/elisp/Window-Configurations.html >> >> I think that it is you want but I don't how integrate this code with gnus and >> your preferences... >> >> Try searching on emacswiki by set-window-configuration keyword... > > Quotation from http://stackoverflow.com/questions/2572950/preserve-window-layout-in-emacs/2575269#2575269 > > I sometimes still use C-x r w to store a window configuration in > a register, and C-x r j (where is a single character) > to jump back to it. > > I learn Emacs with you )) I also just use multiple frames (I use stumpwm, so using emacs as a fullblown window manager seemed redundant), but this is a really nice tip, thanks. -- GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.4) of 2012-09-16 on pellet Ma Gnus v0.6