0

I mean by adding an entry to the .emacs file.

  • 1
    What version of auctex do you use? This is already the default in latest versions. Anyway, giving a look to the manual doesn't hurt ;-) – giordano Apr 1 '16 at 16:05
1

In order to enable PDF mode by default in all *TeX buffers add the following line to your init file:

(with-eval-after-load "tex"
  (TeX-global-PDF-mode 1))

Note that this is the default in AUCTeX since version 11.88, so if you a have a recent version of the package you don't need it to change this by hand.


The function with-eval-after-load has been introduced in Emacs 24.4. If you're running older versions of the program you have to use this syntax instead:

(eval-after-load "tex"
  '(TeX-global-PDF-mode 1))
  • "Symbol's function definition is void: with-eval-after-load" I have version 11/87 on my Ubuntu 14.04. Maybe I should try to install the new version. – Reza Apr 3 '16 at 0:23
  • @Reza See the updated answer. I guess you're running also an old Emacs version. Regarding AUCTeX, note it's available in ELPA, so you can install it using Emacs' built-in package manager (M-x lisp-packages RET). – giordano Apr 3 '16 at 8:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.