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