all repos — archive/dotfiles @ 97ca6f8ceb4e332b8aeca45ce29b9c5f745ad4c9

Superseded by nixfiles

Emacs: Fix flycheck error in cask initialisation
Alan Pearce alan@alanpearce.co.uk
Sat, 26 Apr 2014 13:38:30 +0100
commit

97ca6f8ceb4e332b8aeca45ce29b9c5f745ad4c9

parent

22bcda566ad643c23581fd4c0405e1729e127f60

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

jump to
M tag-emacs/emacs.d/init.eltag-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)