As stated in the title, my document compiles successfully with lualatex file.tex in the command line but not when in emacs using AUCTEX, executing C-c C-c. I'm using a Mac; Tex Live; and auctex v12.1.1.
I am aware of this answer: https://tex.stackexchange.com/a/21212/103829 and have inserted the following at the bottom of my .tex file:
%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% TeX-engine: luatex
%%% End:
M-x TeX-engine-set <ret>and set it toluatex? – Henri Menke Jun 14 '18 at 04:26C-c C-cin Emacs created. – Henri Menke Jun 14 '18 at 05:23