title: How to set up Erlang + Emacs with erlang.el?
body: <p>I have downloaded and installed Erlang and <a href="http://ourcomments.org/cgi-bin/emacsw32-dl-latest.pl" rel="nofollow noreferrer">EmacsW32</a>. But how do I use <code>erlang.el</code> in Emacs? Where do I place it or install it?</p>
  
  <p>I have read <a href="http://erlang.org/doc/" rel="nofollow noreferrer">Erlang/OTP R13B04 documentation</a> and <a href="http://erlang.org/doc/man/erlang.el.html" rel="nofollow noreferrer">Erlang mode for Emacs documentation</a> but I haven't found any information about how to set up it.</p>
  
  <p><b>UPDATE 1:</b> I have found more documentation on <a href="http://www.erlang.org/doc/apps/tools/erlang_mode_chapter.html" rel="nofollow noreferrer">The Erlang mode for Emacs</a>. I have typed in the script in my <code>.emacs</code>, but I get <code>File error: Cannot open load file, erlang-start</code> when I start Emacs, so something is wrong.</p>
  
  <p><b>UPDATE 2:</b> This is how my <code>.emacs</code> look like. It's taken directly from the link above.</p>
  
  <pre><code>(setq load-path (cons "C:/Program Files (x86)/erl5.7.1/lib/tools-2.6.4/emacs"
  load-path))
  (setq erlang-root-dir "C:/Program Files (x86)/erl5.7.1")
  (setq exec-path (cons "C:/Program Files (x86)/erl5.7.1/bin" exec-path))
  (require 'erlang-start)
  </code></pre>
  
  <p><strong>UPDATE 3:</strong> I have now tried on another computer, Windows 7, GNU Emacs 23.1.50.1
  The <code>.emacs</code> file is located at <code>C:\Users\Jonas\.emacs.d\.emacs</code> with this content:</p>
  
  <pre><code>(setq load-path (cons "C:/Program Files (x86)/erl5.7.5/lib/tools-2.6.5.1/emacs" 
  load-path))
  (setq erlang-root-dir "C:/Program Files (x86)/erl5.7.5")
  (setq exec-path (cons "C:/Program Files (x86)/erl5.7.5/bin" exec-path))
  (require 'erlang-start)
  </code></pre>
  
  <p>When I try to type <code>M-x erlang-version</code> in Emacs, I get this message: <code>[No match]</code></p>