I'm a big fan of abbrev-mode
and I'd like something a bit similar: you start typing and as soon as you enter some punctation (or just a space would be enough) it invokes a function (if I type space after a special abbreviation, of course, just like abbrev-mode does).
I definitely do NOT want to execute some function every single time I hit space...
So instead of expanding the abbreviation using abbrev-mode
, it would run a function of my choice.
Of course it needs to be compatible with abbrev-mode
, which I use all the time.
How can I get this behavior?