mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-30 05:29:52 +08:00
ca239fcfa6
Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
;; Same as "package" except that it takes the version from Emacs 24
|
|
(:name package
|
|
:description "ELPA implementation (\"package.el\") from Emacs 24"
|
|
:builtin "24"
|
|
:type http
|
|
:url "http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el"
|
|
:shallow nil
|
|
:features package
|
|
:post-init
|
|
(progn
|
|
(setq package-user-dir
|
|
(expand-file-name
|
|
(convert-standard-filename
|
|
(concat (file-name-as-directory
|
|
default-directory)
|
|
"elpa")))
|
|
package-directory-list
|
|
(list (file-name-as-directory package-user-dir)
|
|
"/usr/share/emacs/site-lisp/elpa/"))
|
|
(make-directory package-user-dir t)
|
|
(unless (boundp 'package-subdirectory-regexp)
|
|
(defconst package-subdirectory-regexp
|
|
"^\\([^.].*\\)-\\([0-9]+\\(?:[.][0-9]+\\)*\\)$"
|
|
"Regular expression matching the name of
|
|
a package subdirectory. The first subexpression is the package
|
|
name. The second subexpression is the version string."))
|
|
(setq
|
|
package-archives
|
|
'(("ELPA" . "http://tromey.com/elpa/")
|
|
("gnu" . "http://elpa.gnu.org/packages/")
|
|
("marmalade" . "http://marmalade-repo.org/packages/")
|
|
("SC" . "http://joseito.republika.pl/sunrise-commander/")))))
|
|
|
|
;; Don't init, elpa packages installed by el-get is
|
|
;; initialized from loaddefs (package-initialize)
|