From: Shelagh Manton <shelagh.manton@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: the v word but not a religious salvo
Date: Tue, 29 Sep 2009 23:04:52 +0000 (UTC) [thread overview]
Message-ID: <h9u3qj$inj$1@ger.gmane.org> (raw)
In-Reply-To: 877hviak30.fsf@newsguy.com
On Mon, 28 Sep 2009 15:30:11 -0500, Harry Putnam wrote:
> I wondered if anyone here is at all familiar with the different
> insertions related plugins for vim?
>
> This is not a plug for vim... Although I am embarrassingly dumb about
> elisp, I am a veteran emacs user for over 10 yrs and not looking to
> switch this late in the game, but like lots of people I've used vim most
> of that time too. Mostly for lighter work like quick edits to system
> files. Or to do the same remotely so I can rely only on what the remote
> might have onboard.
>
> One vim plugin I've seen in use called xpt looks and sounds very very
> useful.
>
> There is a (thankfully short) online demo, you may find it somewhat
> poorly done... I did. However it does give a good hint as to the power
> of this type of approach to helping programmers along with inserting oft
> repeated things and even whole script outlines.
>
> (vim xpt templates plugin)
> http://vimeo.com/4449258
>
> I'm not plugging for vim... what I want to ask is if there is any kind
> of thing like this available for emacs.
>
> I know about skeletons and have written dozens of them for use in
> various places.
>
> And maybe a skeleton can do the advanced things demo'ed in the above
> cited demo... if so maybe someone has a few examples I can mess with.
>
> I'm thinking something that not only inserts a chunk but offers more
> help at specific points if you signal that you want that.
>
> I guess it would be an `interactive' skeleton... I have no idea how to
> write such a thing but I might be able to distort, slaughter and
> generally torture some else's coding in such a way as to get what I want
> from it.
>
>
> Otherwise I'd like to know about any packages that do something even
> vaguely similar to vim's xpt.
I've found skeletons to be very flexible and interactive if need be.
I used some quite complex skeletons when I wrote the lilypond-templates
[[http://code.google.com/p/lilypond-templates/]] package. The skeleton
page on the emacs-wiki [[http://www.emacswiki.org/emacs/SkeletonMode]]
has some useful ideas too about using small text filter functions within
a skeleton. Skeletons can also give you choices, and a default if you
choose nothing. So if you don't grok yasnippets (like me) skeletons could
still be a help.
Shelagh
next prev parent reply other threads:[~2009-09-29 23:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-28 20:30 the v word but not a religious salvo Harry Putnam
2009-09-28 20:44 ` Lennart Borgman
2009-09-29 21:03 ` Harry Putnam
2009-09-29 21:33 ` Harry Putnam
2009-09-30 0:15 ` Lennart Borgman
2009-09-30 6:01 ` Harry Putnam
2009-10-01 17:57 ` Andreas Röhler
2009-10-08 16:57 ` Harry Putnam
[not found] ` <mailman.8336.1255021189.2239.help-gnu-emacs@gnu.org>
2009-10-13 16:56 ` rustom
[not found] ` <mailman.7741.1254290555.2239.help-gnu-emacs@gnu.org>
2009-09-30 18:13 ` Livin Stephen
2009-09-28 20:49 ` Matt Lundin
2009-09-29 23:04 ` Shelagh Manton [this message]
[not found] <mailman.7665.1254169850.2239.help-gnu-emacs@gnu.org>
2009-09-29 8:55 ` David Kastrup
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='h9u3qj$inj$1@ger.gmane.org' \
--to=shelagh.manton@gmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.