help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Fire defun by typing keyword


From: Stefan Monnier
Subject: Re: Fire defun by typing keyword
Date: Tue, 29 Oct 2013 23:05:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Again, it would work just as abbrev, only instead of a
> table lookup and replace, it would trigger a defun.

An abbrev can have a "hook", which is indeed a function that gets called
after inserting the expansion.  So, you can do the above with an abbrev
like

  ("mydate" "" date)


-- Stefan




reply via email to

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