Emacs Yasnippet 安装
尝试从 https://github.com/joaotavora/yasnippet 安装 yasnippet for emacs 23
首先我尝试快速安装,但用于“快速”安装的 yasnippet-bundle.el
似乎不在存储库中?
其次,我尝试了完整安装。
尝试进行完整安装时,出现以下错误:
[yas] Check your `yas/snippet-dirs': ~/.emacs.d/snippets is not a directory
我已下载最新的捆绑包 joaotavora-yasnippet-e53c41d/
并解压到 .emacs.d/plugins/
我的“.emacs”的补充是:
(add-to-list 'load-path
"~/.emacs.d/plugins/joaotavora-yasnippet-e53c41d")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/joaotavora-yasnippet-e53c41d/snippets")
基本上,安装说明似乎与最新的 src 不同步。有谁知道如何安装它?
trying to install yasnippet for emacs 23 from https://github.com/joaotavora/yasnippet
Firstly I attempted the quick install but the yasnippet-bundle.el
for the 'quick' install doesn't seem to be in the repository?
Secondly I attempted the full install.
When trying to do the full install I get the following error:
[yas] Check your `yas/snippet-dirs': ~/.emacs.d/snippets is not a directory
I have downloaded the latest bundle joaotavora-yasnippet-e53c41d/
and unpacked in into .emacs.d/plugins/
the addition to my `.emacs' is:
(add-to-list 'load-path
"~/.emacs.d/plugins/joaotavora-yasnippet-e53c41d")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/joaotavora-yasnippet-e53c41d/snippets")
Basically, the install instructions seem to have become out of sync with the latest src. Does anyone know how to install it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要初始化
yas/root-directory
。这是我设置 yasnippet 的方法You need to initialize
yas/root-directory
. Here is how I setup yasnippet