There are a number of snippet packages that are available for emacs: snippet.el, smart-snippet, and the older skeleton and tempo packages that are a part of emacs. The snippet package was in the words of the developer: A quick stab at providing a simple template facility like the one present in TextMate (an OSX editor). […]