title: Both Python 2 and 3 in Emacs
body: <p>I have been using Emacs to write Python 2 code. Now I have both Python 2.6 and 3.0 installed on my system, and I need to write Python 3 code as well.</p>
  
  <p>Here is how the different versions are set up in /usr/bin:</p>
  
  <pre><code>python -&gt; python2.6*
  python2 -&gt; python2.6*
  python2.6*
  
  python3 -&gt; python3.0*
  python3.0*
  </code></pre>
  
  <p>Is there any way to set this up so that Emacs uses the correct version of Python, depending on which language I am using? For instance, C-c C-c currently runs the buffer, but it always calls python2.6, even if I am writing Python 3 code.</p>