Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Set up some ELPA stuff on launch.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Dec 17, 2008
1 parent eb4d3d5 commit 76d7bbf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
7 changes: 1 addition & 6 deletions TODO
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

(require 'package)
(package-initialize)
(require 'starter-kit-elpa)

;; Load up starter kit customizations:

Expand Down
35 changes: 23 additions & 12 deletions starter-kit-elpa.el
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.