3 ms·
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
by metalliqaz 11y ago
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.
- dschep 11y agoVim has modeline[0]. Is that what you meant? [0] http://vimdoc.sourceforge.net/htmldoc/options.html#%27modeline%27 http://vimdoc.sourceforge.net/htmldoc/options.html#%27modeli...
- telotortium 11y agoAnd the Emacs equivalent, file-local variables[0]. However, these are editor-specific, as far as I'm aware, although Python was able to extract the commonalities between them to support file encoding in PEP 0263[1]. [0] http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables http://www.gnu.org/software/emacs/manual/html_node/emacs/Spe... [1] https://www.python.org/dev/peps/pep-0263/ https://www.python.org/dev/peps/pep-0263/