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: