public
Fork of topfunky/emacs-starter-kit
Description: All the code you need to get started, with an emphasis on dynamic languages.
Homepage:
Clone URL: git://github.com/arunthampi/emacs-starter-kit.git
emacs-starter-kit / starter-kit-elpa.el
100644 45 lines (41 sloc) 1.778 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
;;; starter-kit-elpa.el --- Install a base set of packages automatically.
;;
;; Part of the Emacs Starter Kit
 
(defvar starter-kit-packages (list 'idle-highlight
                                   'ruby-mode
                                   'inf-ruby
                                   'js2-mode
                                   'css-mode
                               ;; To submit:
;;; "magit"
;;; "paredit"
;;; "clojure-mode"
;;; "yaml"
;;; "haml"
;;; "sass"
;;; "cheat"
;;; "gist"
;;; "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.")
 
(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))
 
(provide 'starter-kit-elpa)