A template system for Emacs