diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-15 21:51:43 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-15 21:51:43 +0200 |
commit | 0f074a7e25da6ef4f6aaf0433cc48dfd5b353415 (patch) | |
tree | c55ed97eddd31ec633769b0e520b45b4899d3a22 /.emacs | |
parent | 8de3d902ae7df10c3444cf4b2993d132c3efaea1 (diff) | |
download | dotfiles-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-- | .emacs | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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 |