unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: John Wiegley <jwiegley@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: "Snippet" database
Date: Fri, 06 Jan 2012 21:06:52 -0600	[thread overview]
Message-ID: <m27h1443eb.fsf@gmail.com> (raw)
In-Reply-To: m3ehvcoeg1.fsf@stories.gnus.org

>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> In my various guises I find myself sending out the same rote email answer to
> many people.  "Thanks for the patch; applied" and stuff.  It would be nice
> if one could just mark the region, ask Emacs to pull it into a database of
> snippets, and then have a command that would insert them again.

> Surely something like this already exists in Emacs, but I just can't seem to
> find it.  Probably looking for the wrong thing...

I copy the region, then run yas/new-snippet (from yasnippet, bound to C-c y
n).  I have many e-mail templates now.

John




      parent reply	other threads:[~2012-01-07  3:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 18:47 "Snippet" database Lars Magne Ingebrigtsen
2012-01-06 19:08 ` Drew Adams
2012-01-06 19:13 ` Masatake YAMATO
2012-01-06 21:49   ` Masatake YAMATO
2012-01-06 22:04     ` Lars Magne Ingebrigtsen
2012-01-06 22:17       ` Lennart Borgman
2012-01-06 22:33         ` Tassilo Horn
2012-01-06 19:56 ` Richard Riley
2012-01-06 20:16 ` Ted Zlatanov
2012-01-06 20:45   ` Eli Zaretskii
2012-01-06 21:07     ` Ted Zlatanov
2012-01-06 21:10       ` Lars Magne Ingebrigtsen
2012-01-09  6:02     ` Drew Adams
2012-01-07  3:06 ` John Wiegley [this message]

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m27h1443eb.fsf@gmail.com \
    --to=jwiegley@gmail.com \
    --cc=emacs-devel@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.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).