a). Online Wiki for python mode:
b). Download the tarbal according to above URL
untar into your dir, e.g. $/lisp, there'll be 4 files:
doctest-mode.el pycomplete.el pycomplete.py python-mode.el
c). Edit you $/.emacs, add below lines:
(setq load-path (append load-path (list "/home/ice/tools/python-mode-1.0")))
(autoload 'python-mode "python-mode" "Python editing mode." t)
(setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '("python" . python-mode)
interpreter-mode-alist))
阅读(603) | 评论(0) | 转发(0) |