From ec66ac0081b68df0220ab6f5fc0290b611bf9a6f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 3 Sep 2015 19:34:36 +0200 Subject: Emacs: Ensure cask & pallet are required --- tag-emacs/emacs.d/init.org | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 48b76392..9085c4a5 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -41,7 +41,8 @@ archives. For most packages, I use [[https://github.com/cask/cask][cask]] #+BEGIN_SRC emacs-lisp - (add-to-list 'load-path (expand-file-name "~/.cask")) + (eval-and-compile + (add-to-list 'load-path (expand-file-name "~/.cask"))) (require 'cask) (cask-initialize) #+END_SRC @@ -71,16 +72,17 @@ cask update ** Req-package #+BEGIN_SRC emacs-lisp - (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") - ("marmalade" . "http://marmalade-repo.org/packages/") - ("melpa" . "http://melpa.org/packages/") - ("melpa-stable" . "http://stable.melpa.org/packages/") - ("org" . "http://orgmode.org/elpa/"))) - (package-initialize) - (unless (package-installed-p 'req-package) - (package-refresh-contents) - (package-install 'req-package)) - (require 'req-package) + (eval-and-compile + (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") + ("marmalade" . "http://marmalade-repo.org/packages/") + ("melpa" . "http://melpa.org/packages/") + ("melpa-stable" . "http://stable.melpa.org/packages/") + ("org" . "http://orgmode.org/elpa/"))) + (package-initialize) + (unless (package-installed-p 'req-package) + (package-refresh-contents) + (package-install 'req-package)) + (require 'req-package)) (setq use-package-verbose t) #+END_SRC -- cgit 1.4.1