Skip to content
Newer
Older
100644 54 lines (48 sloc) 2.13 KB
77e270b @technomancy Rearranged ELPA code/docs.
authored Dec 4, 2008
1 ;;; starter-kit-elpa.el --- Install a base set of packages automatically.
5fcb34d @technomancy initial commit
authored Nov 18, 2008
2 ;;
3 ;; Part of the Emacs Starter Kit
77e270b @technomancy Rearranged ELPA code/docs.
authored Dec 4, 2008
4
cd23f0c @technomancy Fix elpa integration.
authored Dec 17, 2008
5 (defvar starter-kit-packages (list 'idle-highlight
76d7bbf @technomancy Set up some ELPA stuff on launch.
authored Dec 16, 2008
6 'ruby-mode
7 'inf-ruby
8 'js2-mode
9 'css-mode
b6f578c @technomancy Add Jabber client.
authored Dec 18, 2008
10 'nxml
928285b @technomancy Gist is in elpa.
authored Dec 23, 2008
11 'gist
77e270b @technomancy Rearranged ELPA code/docs.
authored Dec 4, 2008
12 ;; To submit:
76d7bbf @technomancy Set up some ELPA stuff on launch.
authored Dec 17, 2008
13 ;;; "magit"
f821261 @technomancy Autoload and invoke paredit. Fix ruby-mode RET.
authored Dec 10, 2008
14 ;;; "paredit"
76d7bbf @technomancy Set up some ELPA stuff on launch.
authored Dec 17, 2008
15 ;;; "clojure-mode"
16 ;;; "yaml"
8b83d57 @technomancy Tweak a few variables, change the package list.
authored Dec 10, 2008
17 ;;; "haml"
18 ;;; "sass"
77e270b @technomancy Rearranged ELPA code/docs.
authored Dec 4, 2008
19 ;;; "cheat"
20 ;;; "html-fontify"
21 ;;; "color-theme"
22 ;;; "color-theme-zenburn"
23 ;;; "color-theme-vivid-chalk"
24 ;; Complicated ones:
25 ;;; "nxhtml"
26 ;;; "rinari"
27 ;;; "jabber"
28 ;;; "slime"
29 ;;; "swank-clojure"
76d7bbf @technomancy Set up some ELPA stuff on launch.
authored Dec 17, 2008
30 )
31 "Libraries that should be installed by default.")
32
d17299b @technomancy Only install elpa packages when we're online.
authored Dec 26, 2008
33 ;; Work around a bug in ELPA
34 (ignore-errors (load "elpa/inf-ruby-2.0/inf-ruby-autoloads"))
35
76d7bbf @technomancy Set up some ELPA stuff on launch.
authored Dec 17, 2008
36 (defun starter-kit-elpa-install ()
37 "Install all starter-kit packages that aren't installed."
38 (interactive)
39 (dolist (package starter-kit-packages)
d17299b @technomancy Only install elpa packages when we're online.
authored Dec 27, 2008
40 (unless (or (member package package-activated-list)
41 (functionp package))
b6f578c @technomancy Add Jabber client.
authored Dec 18, 2008
42 (message "Installing %s" (symbol-name package))
76d7bbf @technomancy Set up some ELPA stuff on launch.
authored Dec 17, 2008
43 (package-install package))))
44
d17299b @technomancy Only install elpa packages when we're online.
authored Dec 27, 2008
45 (defun esk-online? ()
46 (some (lambda (iface) (unless (equal "lo" (car iface))
47 (member 'up (first (last (network-interface-info
48 (car iface)))))))
49 (network-interface-list)))
50
76d7bbf @technomancy Set up some ELPA stuff on launch.
authored Dec 17, 2008
51 ;; On your first run, this should pull in all the base packages.
d17299b @technomancy Only install elpa packages when we're online.
authored Dec 27, 2008
52 (when (esk-online?) (starter-kit-elpa-install))
cd23f0c @technomancy Fix elpa integration.
authored Dec 17, 2008
53
54 (provide 'starter-kit-elpa)
Something went wrong with that request. Please try again.