El-get可以非常方便地从自己的存储库安装和管理包。如果我们按照http://www.emacswiki.org/emacs/InstallingPackages http://www.emacswiki.org/emacs/LoadPath下面的方式从本地目录安装一个自定义软件包(从github下载的个人软件包),是否可以将它们添加到el-get列表中并从中获得管理?或者我们可以使用el-get脱机安装包吗?
谢谢
发布于 2013-12-10 15:58:22
可以,您可以对http源类型使用file:// URL。例如:
(defun my-local-repository-url-for (library)
"Provide a URL for a library in ~/.emacs.d/local-repository/"
(concat "file://" (expand-file-name user-emacs-directory)
"local-repository/" library ".el"))
(setq el-get-sources
`(;; [...]
(:name ediff-binary-hexl
:type http
:url ,(my-local-repository-url-for "ediff-binary-hexl"))
;; [...]
))在这些情况下,您往往没有任何其他库的安装代码(例如,手动操作load-path),因为您应该能够在el-get源配置中指定所需的所有内容。
https://stackoverflow.com/questions/20470277
复制相似问题