emacs
C-x C-f
and type
in .emacs
. That file should reside in your home directory.
(load "/afs/athena.mit.edu/user/s/h/shirleyf/python-mode.el") ;;python (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist)) (setq interpreter-mode-alist (cons '("python" . python-mode) interpreter-mode-alist)) (autoload 'python-mode "python-mode" "Python editing mode." t) (global-font-lock-mode t) (font-lock-mode +1)
C-x C-s.
- Restart Emacs.
Use C-x C-f
to create a new file that ends in ".py".
If you see Python by your file name, then your installation
should be working. If you have any problems installing python
using these instructions, please ask the staff for help.