From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: following org links to gnus messages and window management Date: Wed, 19 Mar 2014 11:18:35 +0100 Message-ID: <87k3bqjxtw.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQDaB-00035O-R4 for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 06:18:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQDa5-0003yz-CS for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 06:18:47 -0400 Received: from rs249.mailgun.us ([209.61.151.249]:38901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQDa5-0003y0-3c for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 06:18:41 -0400 In-Reply-To: (Alan Schmitt's message of "Wed, 19 Mar 2014 09:01:34 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode Hi Alan, Alan Schmitt writes: > When I follow a link in a task to a gnus file, this takes over the > current frame, and when I'm done dealing with the message, I have to > "winner-undo" my way until I restore my window configuration. This is > not very convenient. > > My questions are: > - is there a way to run some code before following a link (for instance > "save the current window configuration", or "switch to screen 0")? Nope. > - if not, is there a way to copy a link then open it using the > minibuffer (I would then do the switch to screen 0 manually)? This does not use the minibuffer but you could add that: (progn (org-next-link) (org-open-link-from-string (org-element-property :raw-link (org-element-link-parser)))) > - finally, do you have alternative window management options to suggest > that would work well with following links to gnus messages? Well, all I can think of now is (setq org-agenda-window-setup 'other-frame) > I remember > seeing something nice in Sacha Chua's interview of Magna Sveen > mentioning "perspective-mode", but I have not tried it yet. Me neither! Hope that helps, -- Bastien