summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-15 21:51:43 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-15 21:51:43 +0200
commit0f074a7e25da6ef4f6aaf0433cc48dfd5b353415 (patch)
treec55ed97eddd31ec633769b0e520b45b4899d3a22 /.emacs
parent8de3d902ae7df10c3444cf4b2993d132c3efaea1 (diff)
downloaddotfiles-0f074a7e25da6ef4f6aaf0433cc48dfd5b353415.tar
dotfiles-0f074a7e25da6ef4f6aaf0433cc48dfd5b353415.tar.gz
dotfiles-0f074a7e25da6ef4f6aaf0433cc48dfd5b353415.tar.bz2
dotfiles-0f074a7e25da6ef4f6aaf0433cc48dfd5b353415.tar.xz
dotfiles-0f074a7e25da6ef4f6aaf0433cc48dfd5b353415.zip
Fixes to .emacs
Diffstat (limited to '.emacs')
-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