Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded AucTeX off of M-x package-list-packages and I've enabled AucTeX in my .emacs with

(load "~/.emacs.d/elpa/auctex-11.86/tex-site.el" nil t t)

When I type C-c C-c I would like to by default generate a pdf with pdflatex instead of a dvi with latex. What's the easiest way to do this?

share|improve this question
up vote 1 down vote accepted


(setq TeX-PDF-mode t)                ; PDF mode (rather than DVI-mode)

to your .emacs.

share|improve this answer
To do this on a per-file basis add to the end of the a latex file %%%Local Variables: newline %%% eval: (TeX-PDF-mode 1) newline %%%End: – Christian Herenz May 15 '15 at 11:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .