all repos — archive/dotfiles @ 13785c1eb7c0b85f171e6eb89b6b7bb4f47c6ade

Superseded by nixfiles

Emacs: Remove non-cask package initialisation
Alan Pearce alan@alanpearce.co.uk
Fri, 18 Apr 2014 21:38:28 +0100
commit

13785c1eb7c0b85f171e6eb89b6b7bb4f47c6ade

parent

0bfd80ce7ad7fffeca7c0c6fbde6cd66f6fd6539

1 files changed, 3 insertions(+), 22 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -58,28 +58,9 @@ ;;;; 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)