Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use seperate file to load el-get configuration
- Loading branch information
Showing
2 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
;; el-get installation directory | ||
(setq el-get-dir | ||
(expand-file-name "el-install/" temacco-root-dir)) | ||
;; el-get package init file directory | ||
(setq el-get-user-package-directory | ||
(expand-file-name "el-init/" temacco-root-dir)) | ||
|
||
;; el-get needs to find git | ||
(when (equal system-type 'darwin) | ||
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH"))) | ||
(push "/usr/local/bin" exec-path)) | ||
|
||
;; make sure el-get is found | ||
(add-to-list 'load-path (expand-file-name | ||
"el-get" el-get-dir)) | ||
|
||
;; automatic install | ||
(unless (require 'el-get nil t) | ||
(with-current-buffer | ||
(url-retrieve-synchronously | ||
"https://raw.github.com/dimitri/el-get/master/el-get-install.el") | ||
(end-of-buffer) | ||
(eval-print-last-sexp))) | ||
|
||
(require 'el-get) | ||
|
||
(defvar temacco-el-get-custom-packages nil | ||
"List of custom el-get package recipes") | ||
|
||
(defvar temacco-el-get-packages nil | ||
"List of el-get packages to install") | ||
|
||
(defun temacco-el-get () | ||
"Run el-get using the temacco-el-get variables" | ||
(setq el-get-sources temacco-el-get-custom-packages) | ||
(el-get 'sync (append temacco-el-get-packages | ||
(mapcar 'el-get-source-name el-get-sources))) | ||
) | ||
|
||
(provide 'temacco-el-get) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters