Wasn't there an old standard for text format strings that could be placed at the end of source files that would be understood by Vim and Emacs? I never used it, but this reminds me of it.
[0] http://vimdoc.sourceforge.net/htmldoc/options.html#%27modeli...
[0] http://www.gnu.org/software/emacs/manual/html_node/emacs/Spe...