-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathel-get.el
25 lines (24 loc) · 1.3 KB
/
el-get.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
(let* ((el-get-dir (expand-file-name "~/.emacs.d/el-get/"))
(dummy (unless (file-directory-p el-get-dir)
(make-directory el-get-dir t)))
(package "el-get")
(bname "*el-get bootstrap*")
(pdir (concat (file-name-as-directory el-get-dir) package))
(git (or (executable-find "git") (error "Unable to find `git'")))
(url "git://github.com/dimitri/el-get.git")
(el-get-sources `((:name ,package :type "git" :url ,url :features el-get :compile "el-get.el")))
(default-directory el-get-dir)
(process-connection-type nil) ; pipe, no pty (--no-progress)
(status (call-process git nil bname t "--no-pager" "clone" "-v" url package)))
(set-window-buffer (selected-window) bname)
(when (eq 0 status)
(load (concat (file-name-as-directory pdir) package ".el"))
;; (require 'bytecomp)
(el-get-init "el-get")
(with-current-buffer bname
(goto-char (point-max))
(insert "\nCongrats, el-get is installed and ready to serve!"))))
nil