summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tag-emacs/emacs.d/init.org24
1 files 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