mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-30 05:29:52 +08:00
8dc752601c
Instead of assuming the user wants the elpa/ dir beneath ~/.emacs.d, we'll create it beneath the el-get install dir for package. That way, when we remove package, we don't leave any elpa "turds" behind in ~/.emacs.d.
17 lines
707 B
EmacsLisp
17 lines
707 B
EmacsLisp
(:name package
|
|
:type http
|
|
:url "http://tromey.com/elpa/package.el"
|
|
:features package
|
|
:after (lambda ()
|
|
(setq package-user-dir
|
|
(expand-file-name
|
|
(convert-standard-filename
|
|
(concat (file-name-as-directory
|
|
(el-get-package-directory "package"))
|
|
"elpa")))
|
|
package-directory-list
|
|
(list (file-name-as-directory package-user-dir)
|
|
"/usr/share/emacs/site-lisp/elpa/"))
|
|
(make-directory package-user-dir t)
|
|
(package-initialize)))
|