无法安装 yasnippet?

发布于 2024-09-12 05:54:31 字数 869 浏览 0 评论 0原文

我尝试使用此处给出的“正常安装”协议来安装 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")

在第二个 sexp 处,我得到回溯:

 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 上重现它。预先感谢您的任何建议!

I tried to install yasnippet using the "normal install" protocol given here. After placing the yasnippet-0.6.1c folder in ~/.emacs.d/plugins/, I tried to eval the following in my .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")

At the second sexp, I get the backtrace:

 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(...

Could anyone point me in the right direction with this? I'm not familiar enough with Emacs to be certain that this is not a user error, but it would seem from the backtrace that at least the loadpath was correct.

This is yasnippet 0.6.1c. I can reproduce it on Aquamacs 1.9 and GNU Emacs 22.2.1 under OSX 10.4 and GNU Emacs 23 under Ubuntu 10.04. Thanks in advance for any advice!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷遇一生 2024-09-19 05:54:31
(add-to-list 'load-path
              "~/.emacs.d/plugins/yasnippet-0.6.1c")
(add-to-list 'load-path
              "~/.emacs.d/plugins/yasnippet-0.6.1c")
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文