When I open some .tex files with emacs, I get the following message:
File mode specification error: (error "Autoloading failed to define function latex-mode")
and emacs is not is latex mode. The latex part of my init.el file is the following:
(require 'tex)
(setq TeX-PDF-mode 1)
(custom-set-variables
'(TeX-view-program-list (quote (("Evince" "evince --page-index=%(outpage) %o")))))
(custom-set-faces)
I checked the installation of the auctex package already.
What is wrong?