我已按照这些说明el-get
尝试安装 emacs-jedi(和其他需要的软件包),但没有运气。
在我的 .emacs 文件中,我添加了以下几行:
;; .emacs
;; Load package repositories
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/package/") t)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
;; Install / load / require el-get and
;; packages managed by it.
(add-to-list 'load-path "~/.emacs.d/el-get/")
(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
(unless (require 'el-get nil t)
(url-retrieve
"https://raw.github.com/dimitri/el-get/master/el-get-install.el"
(lambda (s)
(end-of-buffer)
(eval-print-last-sexp))))
;; Initialize any loaded packages
(package-initialize)
;; stuff to set font, theme, etc.
;; ...
;; Include jedi for Python mode.
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t)
;; rest of file ...
起初,我看到了“无法打开加载文件 jedi/jedi”的问题。当我将“~/.emacs.d/el-get/”添加到加载路径时,这似乎消失了(el-get
似乎只在加载路径上放置了“~/.emacs.d/el-get/el-get”安装时)。
但在此之后,打开一个 Python 文件并尝试M-x python-mode
会产生错误:
Symbol's function definition is void: jedi:setup
我很高兴进行更多调试或提供更多消息或输出——但是在谷歌搜索这些错误消息很长时间之后,我一直无法找到任何看起来很有成效的尝试。