Setting variables in emacs at file header
shell | pfortuny | (0)
When editing LaTeX files, I usually call the master file of a project 00father.ltx for historical reasons. Moreover, the following line is part of my .emacs:
(setq-default TeX-master "00father.ltx")
because most of the time I am editing multifile projects.
However, from time to time I need to write a single-file document and in this case, naming it 00father.ltx is not that useful, and I do not want to have to set the master-file variable each time I load the file.
There is an easy way to get this done. Just include a line at the top of the file -as a comment in the ...