[Top][All Lists]

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

Re: abbrevs and cursor control

From: Kai Großjohann
Subject: Re: abbrevs and cursor control
Date: Fri, 14 Feb 2003 10:02:34 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

Harry Putnam <> writes:

> (define-skeleton hp-mkeywords
>       "Insert nifty keywords string into mail/news messages
>          and closing characters to make it searchable in a blob"
>       nil
>       "Keywords: "_"\n" 
>       (format-time-string "X-Key-Date: %b %d %Y %w\n") 
>       "X-&&: ") 
> I'd like to do something like that with the symplicity of an abbrev
> rather than calling command or hitting command keys.

I hope you mean ease of use rather than ease of definition.  Actually,
you can marry skeletons and abbrevs: the define-abbrev function (and
its ilk) allows you to specify a hook.  You could specify the empty
string as the expansion and the skeleton as the hook.
A turnip curses Elvis

reply via email to

[Prev in Thread] Current Thread [Next in Thread]