Python mode

If you are not using the daimi setup, try this:


Copy python-mode.el (see below) to some directory "foo".  Then add the
following to the file you have in your root called .emacs:

(setq load-path `("foo" . ,load-path))
(load-library "python-mode")
(setq auto-mode-alist
       (cons '("\\.py$" . python-mode) auto-mode-alist))

where "foo" is the directory you copied python-mode.el to.

Otherwise, this should work:

cp ~mailund/python-mode.el ~/.daimi-setup/emacs.d

Do this once, and you'll get nice colors etc. in your python programs (extension .py) from the next time you start emacs.