From 13785c1eb7c0b85f171e6eb89b6b7bb4f47c6ade Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 18 Apr 2014 21:38:28 +0100 Subject: Emacs: Remove non-cask package initialisation --- tag-emacs/emacs.d/init.el | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index b138291..5bf49ff 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -58,28 +58,9 @@ Values: `desktop', `server', `laptop'") ;;;; Package Management (add-to-list 'load-path (expand-file-name "elisp/" user-emacs-directory)) -(let ((cask-dir (expand-file-name "~/.cask"))) - (if (file-exists-p cask-dir) - (progn - (add-to-list 'load-path cask-dir) - (require 'cask) - (cask-initialize)) - (eval-and-compile - (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") - ("marmalade" . "http://marmalade-repo.org/packages/") - ("melpa" . "http://melpa.milkbox.net/packages/") - ("org" . "http://orgmode.org/elpa/"))) - (package-initialize)) - - (when (not package-archive-contents) - (package-refresh-contents)) - - (mapc (lambda (package-name) - (unless (package-installed-p package-name) - (package-install package-name))) - '(bind-key - diminish - use-package)))) +(add-to-list 'load-path (expand-file-name "~/.cask")) +(require 'cask) +(cask-initialize) (require 'use-package) (use-package pallet) -- cgit 1.4.1