From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: org-mode gnus integration across two machines when using nnimap Date: Wed, 01 Dec 2010 21:58:14 -0500 Message-ID: <878w08dgop.fsf@fastmail.fm> References: <87tyixfi9o.fsf@EVA01.wopr.org> <87zkspksr2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=58500 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNzNC-0002MA-Jp for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 21:58:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNzNA-0001yF-Qz for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 21:58:18 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:57385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNzNA-0001y6-Md for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 21:58:16 -0500 In-Reply-To: (Greg Troxel's message of "Wed, 01 Dec 2010 20:55:29 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Greg Troxel Cc: emacs-orgmode@gnu.org Greg Troxel writes: > Basically, when reading an email (in gnus, in wl, in other emacs MUAs > possibly), type "C-c l" (org-store-link) which will /store/ a link to > that email ("store" is the wrong word, in my view; it should arguably be > "make" or "create" or "define" or ... but that's neither here nor > there). You can then put that link in an org file with "C-c C-l RET" > (org-store-link, accepting the default which should be the last link you > stored). > > Perhaps my capture setup isn't fancy enough, but I think it would be > nice if the default for capture when invoked from gnus were to grab the > gnus link and insert it in the body of the new org headline. That's what the "%a" is for in the capture template. ,----[ from C-h v org-capture-templates ] | %a annotation, normally the link created with `org-store-link' `---- However, the default setup (i.e., when org-capture-templates is nil) also grabs the link: ,----[ org-capture.el (1110-1101) ] | ;; Use an arbitrary default template | '("t" "Task" entry (file+headline "" "Tasks") "* TODO %?\n %u\n %a"))) `---- Here's what happened when I used the default template on your email: --8<---------------cut here---------------start------------->8--- ** TODO [2010-12-01 Wed] [[gnus:gmane.emacs.orgmode#rmid3plvsz2.fsf@fnord.ir.bbn.com][Greg Troxel: Re: Re: org-mode gnus integration across two machines when using nnimap]] --8<---------------cut here---------------end--------------->8--- But perhaps I misunderstand what you mean by the body of the default gnus headline. Here's a simple template for capturing a link in a headline: --8<---------------cut here---------------start------------->8--- ("l" "link" entry (file "~/org/inbox.org") "* %a\n %U\n %?\n %i") --8<---------------cut here---------------end--------------->8--- Do you have org-gnus in activated in org-modules (the default)? Best, Matt