From 0f074a7e25da6ef4f6aaf0433cc48dfd5b353415 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 15 Jul 2015 21:51:43 +0200 Subject: Fixes to .emacs --- .emacs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index 4bb3336..27eb5ce 100644 --- a/.emacs +++ b/.emacs @@ -1,3 +1,12 @@ +(require 'package) + +(add-to-list 'package-archives + '("marmaled" . "http://marmalade-repo.org/packages/") t) +(when (< emacs-major-version 24) + ;; For important compatibility libraries like cl-lib + (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) + + (defun ensure-package-installed (&rest packages) "Assure every package is installed, ask for installation if it’s not. @@ -17,13 +26,6 @@ Return a list of installed packages or nil for every skipped package." (or (file-exists-p package-user-dir) (package-refresh-contents)) -(require 'package) -(add-to-list 'package-archives - '("marmaled" . "http://marmalade-repo.org/packages/") t) -(when (< emacs-major-version 24) - ;; For important compatibility libraries like cl-lib - (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) - (ensure-package-installed 'color-theme 'evil 'evil-dvorak 'undo-tree 'zenburn-theme 'magit 'haskell-mode) ;; activate installed packages -- cgit v1.2.3