I'd like to follow the advice from @egreg in his answer to the question AUCTeX and XeTeX. However the given code does not work for me.
I have:
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\section{title}
test
\end{document}
%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% TeX-engine: luatex
%%% End:
but when I try to compile with C - c C - c I get the classic:
fatal error, fontspec requires...
If I change the TeX-engine globally with M - x -> customize-variable -> TeX-engine everything works fine.
I have emacs 24.4.1 and AUCTex 11.88
C-c C-n, this resets AUCTeX. – giordano Nov 26 '14 at 13:58