yaotti's diary

Software is Eating the World

PythonのリファレンスをEmacsから見る

1.infoファイルをPython 和訳ドキュメントからダウンロードする(ver2.4なので少し古いかも)

2.解凍して、Info-directory-listに含まれる適当なフォルダに入れる

3.python-mode.elの最後の、以下の部分を編集
(python-libをpython-lib-jp.infoに変更する)

(when (fboundp 'info-lookup-maybe-add-help)
  (info-lookup-maybe-add-help
   :mode 'python-mode
   :regexp "[a-zA-Z0-9_]+"
   :doc-spec '(("(python-lib-jp.info)Module Index")
	       ("(python-lib-jp.info)Class-Exception-Object Index")
	       ("(python-lib-jp.info)Function-Method-Variable Index")
	       ("(python-lib-jp.info)Miscellaneous Index")))
  )

以上。

M-x info-lookup-symbolでリファレンスを引ける。
英語のinfoファイルは探したけれど見付からなかった。