LoginSignup
22
26

More than 5 years have passed since last update.

emacsにjedi(pythonの自動補完パッケージ)を導入した話

Last updated at Posted at 2015-05-04

色々迷走(古いインストール方法を中途半端にやってしまったり)して、導入するのに半日以上かかってしまったが、とりあえずできた。

基本的に、以下のURLの Quick start の所をやればOK。
http://tkf.github.io/emacs-jedi/latest/

MELPAでパッケージを導入したが、依存パッケージも全部勝手に入れてくれた。
※MELPAについては以下を参照のこと。
http://qiita.com/ongaeshi/items/e81fca7a9797fe203e9f

パッケージが入ったら、以下の記述をinit.elに追加

init.el
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t)

最後にemacsから以下のコマンドを実行

M-x jedi:install-server

これだけでいけた。

使用感はすごくいい感じ。満足。

スクリーンショット 2015-05-04 18.39.32.png

スクリーンショット 2015-05-04 18.41.19.png

スクリーンショット 2015-05-04 18.52.16.png

22
26
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
26