2013-12-09 94 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-得到源配置。