Gnus development mailing list
 help / color / mirror / Atom feed
From: lee <lee@yun.yagibdah.de>
To: ding@gnus.org
Subject: Re: using templates to write articles (email)
Date: Fri, 10 Jun 2011 22:46:12 +0200	[thread overview]
Message-ID: <87zklpywwf.fsf@yun.yagibdah.de> (raw)
In-Reply-To: <m2ei318ot3.fsf@xemacs.org>

Didier Verna <didier@xemacs.org> writes:

> lee <lee@yun.yagibdah.de> wrote:
>
>> is there some sort of support built into gnus for writing articles
>> (email) from templates? Such templates would contain either headers or
>> a body, or a combination of both.
>
> So I guess you could go down this road. You can add any variable to a
> topic/group parameter, for example a skeleton text. Then, what you can
> do is write a message-setup-hook function that looks in there and fill
> your message with the appropriate contents.
>
> All of this provided that group-based templating is what you have in
> mind of course.

Group-based templating should be fine. I would only need to specify the
filename of the template text in a variable and to write a function that
automatically replaces the default contents of the composing buffer with
the file and then allows me to edit it :)



  reply	other threads:[~2011-06-10 20:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-10 18:03 lee
2011-06-10 18:53 ` Eric Abrahamsen
2011-06-10 20:41   ` lee
2011-06-10 19:32 ` Didier Verna
2011-06-10 20:46   ` lee [this message]
2011-06-11 17:22 ` Dan Christensen
2011-06-13  0:33 ` solved: " lee

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

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

  git send-email \
    --in-reply-to=87zklpywwf.fsf@yun.yagibdah.de \
    --to=lee@yun.yagibdah.de \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).