title: Emacs Python-mode syntax highlighting
body: <p>I have GNU Emacs 23 (package <code>emacs23</code>) installed on an Ubuntu 10.04 desktop machine and package <code>emacs23-nox</code> installed on an Ubuntu 10.04 headless server (no X installed). Both installations have the same <code>~/.emacs</code> file. I run Emacs with <code>-nw</code> on both computers. I don't have <code>python-mode</code> installed on either machine as my understanding is that this is included in Emacs 23.  </p>
  
  <p>On the desktop machine, comments in Python (starting with <code>#</code>) are highlighted in red. On the server, comments appear in plain white text like all other non-highlighted text. Any suggestions as to why comments are not being highlighted correctly on the server (<code>nox</code>) installation?  </p>
  
  <p><strong>Update:</strong> This appears to be a terminal-related issue. I <code>ssh</code> into the server machine from <code>terminator</code> via the screen replacement <code>byobu</code>. If I run emacs on the server with <code>TERM="xterm-256color" emacs</code>, then comments are highlighted, but all the other colours look very strange.  </p>
  
  <p><strong>Update:</strong> Adding `export TERM="xterm-256color" "solved" this. The syntax highlighting now has very strange colours though: purples lilacs and light browns. My green current line highlight bar is now a light pale yellow/green. Comments are highlighted in red though :)</p>
  
  <p><strong>Update: Solved.</strong> Setting <code>TERM="xterm-color"</code> produces "proper" colors, including highlighting of comments. The server was defaulting to a value of "screen-bce" for <code>TERM</code> which was not highlighting comments.</p>
  
  <p><strong>Update: Unsolved.</strong> <code>byobu</code> provides keybindings for various function keys to easily create new screen sessions and switch between them. When <code>TERM</code> is set to <code>xterm-color</code>, these function keys no longer work. So I guess I'll just have to be happy with unhighlighted comments in Python code in Emacs.</p>