summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-04-26 13:38:30 +0100
committerAlan Pearce2014-04-26 13:39:10 +0100
commit97ca6f8ceb4e332b8aeca45ce29b9c5f745ad4c9 (patch)
tree6a0f7c0da0fbef4cebb56e84a5297553002ffdbd
parent22bcda566ad643c23581fd4c0405e1729e127f60 (diff)
downloaddotfiles-97ca6f8ceb4e332b8aeca45ce29b9c5f745ad4c9.tar.lz
dotfiles-97ca6f8ceb4e332b8aeca45ce29b9c5f745ad4c9.tar.zst
dotfiles-97ca6f8ceb4e332b8aeca45ce29b9c5f745ad4c9.zip
Emacs: Fix flycheck error in cask initialisation
-rw-r--r--tag-emacs/emacs.d/init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 580b5fd..b0375c4 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -35,8 +35,9 @@
 ;;;; Package Management
 (add-to-list 'load-path (expand-file-name "elisp/" user-emacs-directory))
 
-(add-to-list 'load-path (expand-file-name "~/.cask"))
-(require 'cask)
+(eval-and-compile
+  (add-to-list 'load-path (expand-file-name "~/.cask"))
+  (require 'cask))
 (cask-initialize)
 
 (require 'req-package)