Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (48 sloc) 2.13 KB
;;; starter-kit-elpa.el --- Install a base set of packages automatically.
;; Part of the Emacs Starter Kit
(defvar starter-kit-packages (list 'idle-highlight
;; To submit:
;;; "magit"
;;; "paredit"
;;; "clojure-mode"
;;; "yaml"
;;; "haml"
;;; "sass"
;;; "cheat"
;;; "html-fontify"
;;; "color-theme"
;;; "color-theme-zenburn"
;;; "color-theme-vivid-chalk"
;; Complicated ones:
;;; "nxhtml"
;;; "rinari"
;;; "jabber"
;;; "slime"
;;; "swank-clojure"
"Libraries that should be installed by default.")
;; Work around a bug in ELPA
(ignore-errors (load "elpa/inf-ruby-2.0/inf-ruby-autoloads"))
(defun starter-kit-elpa-install ()
"Install all starter-kit packages that aren't installed."
(dolist (package starter-kit-packages)
(unless (or (member package package-activated-list)
(functionp package))
(message "Installing %s" (symbol-name package))
(package-install package))))
(defun esk-online? ()
(some (lambda (iface) (unless (equal "lo" (car iface))
(member 'up (first (last (network-interface-info
(car iface)))))))
;; On your first run, this should pull in all the base packages.
(when (esk-online?) (starter-kit-elpa-install))
(provide 'starter-kit-elpa)
Jump to Line
Something went wrong with that request. Please try again.