I use Emacs 23.4 on Mac OS 10.7. That's what I've done:
- Create a LaTeX file so you have all the AUCTeX menus available
- Go to LaTeX -> Customize AUCTeX -> Browse options
- Click on TeX Command
- Expand TeX Command List and press on one INS button
- Fill the appeared fields as here:
- Name: LaTeXnonint
- Command: %`%l -interaction=nonstopmode %(mode)%' %t
- How: TeX-run-command
In this way, if I try to compile (hitting C-c C-c LaTeXnonint) a file like:
\documentclass[a4paper]{article}
\begin{document}
\latex
\end{document}
I get no interaction on the present error (\latex
instead of \LaTeX
)
P.S. the first three points of the list can be made using the shortcut showed by @Seamus
M-x customize-group RET TeX-command
?