Python-mode for Emacs on Athena
From 6.006 Introduction to Algorithms
Revision as of 18:27, 4 February 2008 by 128.30.44.145 (Talk)
For GNU Emacs (emacs) on Athena
We have installed a Python mode, supporting indentation, syntax highlighting, and other useful features, in the 6.006 locker (because one is not installed by default on Athena). To use it, add the following lines to your .emacs file in your home directory:
(setq load-path `("/afs/athena.mit.edu/course/6/6.006/elisp" . ,load-path)) (load-library "python-mode")
It should then automatically be loaded when you open Python (.py) files.
If you do not have syntax highlighting turned on already, add this line to your .emacs file:
(global-font-lock-mode t)