-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-packages.el
49 lines (46 loc) · 1.19 KB
/
install-packages.el
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
46
47
48
49
;;; required package configuration
;; additional package archives
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
;; install or update packages
(defvar my-packages
(list 'better-defaults
'powerline
'browse-kill-ring
'syntax-subword
'smartparens
'multiple-cursors
'linum-off
'company
'twilight-theme
'solarized-theme
'flx-ido
'ido-vertical-mode
'switch-window
'flycheck
'magit
'web-mode
'scss-mode
'coffee-mode
'haml-mode
'markdown-mode
;; ruby
'rspec-mode
'ruby-tools
'rinari
;; elixir
'elixir-mode
'alchemist))
(defun my-packages-install ()
"Install my packages."
(interactive)
(dolist (package my-packages)
(unless (or (member package package-activated-list)
(functionp package))
(message "Installing %s" (symbol-name package))
(package-install package))))
;; execute
(package-refresh-contents)
(my-packages-install)