Emacs templates for creating new major-mode or minor-mode