summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs16
1 files changed, 9 insertions, 7 deletions
diff --git a/.emacs b/.emacs
index 4bb3336..27eb5ce 100644
--- a/.emacs
+++ b/.emacs
@@ -1,3 +1,12 @@
1(require 'package)
2
3(add-to-list 'package-archives
4 '("marmaled" . "http://marmalade-repo.org/packages/") t)
5(when (< emacs-major-version 24)
6 ;; For important compatibility libraries like cl-lib
7 (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
8
9
1(defun ensure-package-installed (&rest packages) 10(defun ensure-package-installed (&rest packages)
2 "Assure every package is installed, ask for installation if it’s not. 11 "Assure every package is installed, ask for installation if it’s not.
3 12
@@ -17,13 +26,6 @@ Return a list of installed packages or nil for every skipped package."
17(or (file-exists-p package-user-dir) 26(or (file-exists-p package-user-dir)
18 (package-refresh-contents)) 27 (package-refresh-contents))
19 28
20(require 'package)
21(add-to-list 'package-archives
22 '("marmaled" . "http://marmalade-repo.org/packages/") t)
23(when (< emacs-major-version 24)
24 ;; For important compatibility libraries like cl-lib
25 (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
26
27(ensure-package-installed 'color-theme 'evil 'evil-dvorak 'undo-tree 'zenburn-theme 'magit 'haskell-mode) 29(ensure-package-installed 'color-theme 'evil 'evil-dvorak 'undo-tree 'zenburn-theme 'magit 'haskell-mode)
28 30
29;; activate installed packages 31;; activate installed packages