EmacsにPython-modeを追加
1. 下記URLより, python-mode-1.0.tar.gzをダウンロード
http://www.python.org/emacs/python-mode/
2. 展開したディレクトリを以下にコピー
/usr/share/emacs/site-lisp
3. .emacsに以下を追加
;;;Add python mode
(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)
(setq load-path (cons (expand-file-name "/usr/share/emacs/site-lisp/python-mode-1.0") load-path))
最終更新:2007年03月13日 18:56