About editors and snippets

Benoit Daloze eregontp at gmail.com
Sun Jul 8 15:24:16 CEST 2012

Hello Lyle,

Thanks for link, I indeed do not know the right term for this.
However, abbrevs (and Hippie Expand) seem less powerful or
practical than http://www.emacswiki.org/SnippetMode or yasnippet,
notably because it seems they can't easily manage cursor position
and "mirrors".

As an example, using the "case" snippets for lists, defined as:
#name : case - case for Lists
# --
case ${1:X}s
of nil then $2
[] $1|$1r then $0

Typing   case <TAB> Y <TAB> nil <TAB> {F Y}   expands to
case Ys
of nil then nil
[] Y|Yr then {F Y}

Is this possible with abbrevs? How?

On 8 July 2012 02:14, Lyle Kopnicky <lists at qseep.net> wrote:
> Hi Benoit,
> What you call 'snippets' are called 'abbrevs' in emacs.
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Abbrevs.html
> - Lyle
> _________________________________________________________________________________
> mozart-users mailing list
> mozart-users at mozart-oz.org
> http://www.mozart-oz.org/mailman/listinfo/mozart-users

More information about the mozart-users mailing list