我尝试使用给定here的“正常安装”协议来安装yasnippet。在将yasnippet-0.6.1c文件夹放在~/.emacs.d/plugins/中之后,我尝试在我的.emacs中对以下内容求值:
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet-0.6.1c")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets")在第二次性别测试中,我得到了回溯:
Debugger entered--Lisp error: (void-variable yasnippet-bundle)
eval(yasnippet-bundle)
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
recursive-edit()
byte-code(...有人能用这个给我指出正确的方向吗?我对Emacs还不够熟悉,无法确定这不是用户错误,但从回溯看,至少装入路径是正确的。
这是yasnippet 0.6.1c。我可以在OSX 10.4下的Aquamacs 1.9和GNU Emacs 22.2.1以及Ubuntu 10.04下的GNU Emacs 23上重现它。提前感谢您的建议!
发布于 2010-08-02 13:44:50
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet-0.6.1c")https://stackoverflow.com/questions/3385298
复制相似问题