I am using Emacs / AucTeX to edit LaTeX files. In some of my LaTeX files, I defined some “file-specific” command (for example, \todo{...}in one file, \compute{...}in another, etc.), so I can keep track of what open problems I have in my documents.
The Emacs team highlight-regexpdoes a pretty good joob, highlighting all \todo{...}resp occurrences . \compute{...}s. But so far, I have to perform manual selection every time I open the corresponding file.
Is there a way to tell Emacs / AucTeX to invoke specific commands when opening a specific file? I would like to define these commands inside the corresponding file, so I can easily configure it for different files (maybe included in local variables).
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%%
%%% here I would like to have something like:
%%% execute highlight-regexp for specific arguments
%%%
%%% End:
source
share