Permalink
Browse files

Set up some ELPA stuff on launch.

  • Loading branch information...
1 parent eb4d3d5 commit 76d7bbfc0c2d42c4e113576f6bbbb8c663d3c51e @technomancy committed Dec 17, 2008
Showing with 25 additions and 18 deletions.
  1. +1 −6 TODO
  2. +1 −0 init.el
  3. +23 −12 starter-kit-elpa.el
View
@@ -1,18 +1,13 @@
TODO:
-Start custom ELPA server
-
Submit the packages in starter-kit-elpa.el to ELPA.
-Check each of starter-kit-packages periodically to make sure they're
-all up to date.
+Greg Newman is working on Python helpers.
maybe include:
-* pcmpl-rake (or put it in another file; it's only 2 functions)
* should yasnippet be included in rinari?
to write/finish:
-* mublog
* ri
* submit ruby fixes to flymake
View
@@ -33,6 +33,7 @@
(require 'package)
(package-initialize)
+(require 'starter-kit-elpa)
;; Load up starter kit customizations:
View
@@ -2,22 +2,20 @@
;;
;; Part of the Emacs Starter Kit
-(defvar starter-kit-packages '("idle-highlight"
- "ruby-mode"
- "inf-ruby"
- "js2-mode"
- "css-mode"
- "ert"
+(setq starter-kit-packages (list 'idle-highlight
+ 'ruby-mode
+ 'inf-ruby
+ 'js2-mode
+ 'css-mode
;; To submit:
+;;; "magit"
;;; "paredit"
+;;; "clojure-mode"
+;;; "yaml"
;;; "haml"
;;; "sass"
-;;; "clojure-mode"
;;; "cheat"
;;; "gist"
-;;; "magit"
-;;; "yaml"
-;;; "paredit"
;;; "html-fontify"
;;; "color-theme"
;;; "color-theme-zenburn"
@@ -28,5 +26,18 @@
;;; "jabber"
;;; "slime"
;;; "swank-clojure"
- )
- "Libraries that should be installed by default.")
+ )
+ "Libraries that should be installed by default.")
+
+(defun starter-kit-elpa-install ()
+ "Install all starter-kit packages that aren't installed."
+ (interactive)
+ (dolist (package starter-kit-packages)
+ (unless (functionp package)
+ (package-install package))))
+
+;; On your first run, this should pull in all the base packages.
+;; But you might not be online, so ignore errors.
+(ignore-errors
+ (message "Checking base list of packages...")
+ (starter-kit-elpa-install))

0 comments on commit 76d7bbf

Please sign in to comment.