2013-12-09 96 views

回答

0

是的,你可以使用file://网址与http源类型。例如:

(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-得到源配置。