2011-09-30 20:41:07 +08:00
|
|
|
;; Same as "package" except that it takes the version from Emacs 24
|
2010-09-05 01:13:34 +08:00
|
|
|
(:name package
|
2011-09-30 20:41:07 +08:00
|
|
|
:description "ELPA implementation (\"package.el\") from Emacs 24"
|
2011-10-02 04:31:07 +08:00
|
|
|
:builtin 24
|
2010-09-05 01:13:34 +08:00
|
|
|
:type http
|
2011-10-03 14:45:18 +08:00
|
|
|
:url "http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el"
|
2012-02-14 09:36:41 +08:00
|
|
|
:shallow nil
|
2010-09-20 16:00:52 +08:00
|
|
|
:features package
|
2012-02-23 05:43:32 +08:00
|
|
|
:post-init
|
2012-02-27 07:13:08 +08:00
|
|
|
(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
|
2011-09-30 20:41:07 +08:00
|
|
|
a package subdirectory. The first subexpression is the package
|
|
|
|
name. The second subexpression is the version string."))
|
2012-02-27 07:13:08 +08:00
|
|
|
(setq
|
|
|
|
package-archives
|
|
|
|
'(("ELPA" . "http://tromey.com/elpa/")
|
|
|
|
("gnu" . "http://elpa.gnu.org/packages/")
|
|
|
|
("marmalade" . "http://marmalade-repo.org/packages/")))))
|
2011-09-30 20:41:07 +08:00
|
|
|
|
2012-02-23 05:43:32 +08:00
|
|
|
;; Don't init, elpa packages installed by el-get is
|
|
|
|
;; initialized from loaddefs (package-initialize)
|