[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make message templet with attachments



At Sun, 06 Oct 2013 00:27:12 +0900,
Youngchul Park wrote:
> 
>   I am running mobile phone shop on internet. I get many inquiries
> about the phones. So, I have to answer for hundreds of inquiries
> everyday. I simply reply them with everyday same information and some
> pictures.  I just copy text and paste it into message body. And I put
> customer's name at the top and insert attachments. And it takes about
> 2 minutes to do it.
>   I just started to use Wanderlust. I like this. I have tried to
> figure out how to do it simply. I tried to use wl-template-alist. It
> seems not working well. And it would be difficult to change text part
> of message when I have to change some. So, I hope to get some helps
> from here. Please give me a hint where I need to start. Thank you.

Hi Youngchul,

If WL templates aren’t sufficient, maybe one of the emacs template
modes?

  http://www.emacswiki.org/cgi-bin/wiki/CategoryTemplates

yasnippet seems to be the most popular.

  https://github.com/capitaomorte/yasnippet

It seems pretty easy to get started. Here’s a quick message template I
created:

# -*- mode: snippet -*-
# name: email
# key: msg1
# --
Dear ${1:who},

Blah blah blah. Please ${2:what to do}.
$0

${3:salutation}

If you put this in ~/.emacs.d/snippets/wl-draft-mode/msg1, with
yasnippet-global enabled, you simply type msg1 <TAB> and can then tab
through the ${ ... } parts.

best, Erik
Sent from my free software system <http://fsf.org/>.