I keep auto-fill-mode enabled by default for all LaTeX files.
This is usually nice, but occasionally one latex file contains mostly tables and I would like to disable auto-fill-mode whenever I edit that particular file.
Is it possible to specify at the top of a .tex file that I would like it to be the exception?
Alternatively, is it possible to specify in .emacs the paths/names of these files?
I like the solution of looking for something in the file to determine whether or not to have autofill.
If you want to put an identifier at the top, you can use code like this:
And obviously change
"Some Unique Identifier"to something reasonable – such as a search for the tables themselves. Then you’d get exactly what you want, LaTeX files with tables wouldn’t be auto-filled.Note: @Alex suggested using a file-local variable, but this is a mistake according to the manual itself: