emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: capture template question
Date: Thu, 02 Aug 2012 16:36:36 +0800	[thread overview]
Message-ID: <87pq79d71n.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 878vdx3hb1.fsf@thinkpad.tsdh.de

On Thu, Aug 02 2012, Tassilo Horn wrote:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
> Hi Eric,
>
>> I have a capture template that I use for noting gnus messages I want
>> to respond to. What I'd like to end up with is:
>>
>> * EMAIL Respond to [[gnus.mail:sdfdfdfsdfdsfsdf][Bob Johnson]]
>>
>> Where the link address is the message under point, and the link
>> description is the message's %:fromname.
>>
>> I may be dense, but I don't quite see if/how this is possible…
>
> An org-capture-templates entry like that should do:
>
>   ("e" "EMAIL" entry
>    (file "/home/horn/Repos/org/remember.org") ;; adapt to your needs
>    "* EMAIL Respond to %a%?")
>
> In contrast to what you requested, the link's name is something like
>
>   Email from Eric Abrahamsen: capture template question
>
> I think, that's even better.  (Honestly, it seems there's no gnus link
> support for picking out only the from-part.) :-)

That's what I had before! I hate the big long citation (I seem to get
emails with epic Subject headers), and was trying to make something more
concise.

Rather than trying to add various ways of citing links, perhaps it would
be nice to have a format code for the literal link to the thing under
point at time of capture? What I mean is, something like "%l" so I could
do this:

* EMAIL Respond to [[%l][%:fromname]]%?

Seems like that would add quite a bit of flexibility…

E

-- 
GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.11)
 of 2012-08-02 on pellet
7.8.11

  reply	other threads:[~2012-08-02  8:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02  6:54 capture template question Eric Abrahamsen
2012-08-02  7:05 ` Tassilo Horn
2012-08-02  8:36   ` Eric Abrahamsen [this message]
2012-08-02 15:07     ` Bastien
2012-08-02 15:37       ` Eric Abrahamsen
2012-08-03  9:13       ` Tassilo Horn
2012-08-03 12:06         ` Bastien
2012-08-03 12:18         ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pq79d71n.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).