I have a LaTeX-file (thesis.tex
) which I edit daily. Some LaTeX-package I use requires me to compile the file with --shell-escape
, so I added the file-local variable
%%% TeX-command-extra-options: "--shell-escape"
at the end of my file. This variable is considered risky, so every time I open my file, emacs asks me to confirm this variable is safe for this file. This is a bit annoying.
For arbitrary files I totally agree with the reasoning that --shell-escape
is unsafe, so I do not want to mark this value as safe for arbitrary files by customizing safe-local-variable-values
, as described in the documentation.
Is it possible to mark this local variable safe only for thesis.tex
?