Greg Troxel <g...@ir.bbn.com> 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....@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

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to