首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装yasnippet?

无法安装yasnippet?
EN

Stack Overflow用户
提问于 2010-08-02 13:42:07
回答 1查看 753关注 0票数 1

我尝试使用给定here的“正常安装”协议来安装yasnippet。在将yasnippet-0.6.1c文件夹放在~/.emacs.d/plugins/中之后,我尝试在我的.emacs中对以下内容求值:

代码语言:javascript
复制
(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")

在第二次性别测试中,我得到了回溯:

代码语言:javascript
复制
 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上重现它。提前感谢您的建议!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-08-02 13:44:50

代码语言:javascript
复制
(add-to-list 'load-path
              "~/.emacs.d/plugins/yasnippet-0.6.1c")
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3385298

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档