From f8a96e353bc1722e00c2247bd9e6022aeeeea99b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 4 Mar 2016 18:28:12 -0500 Subject: [PATCH] Update cask load-path init --- bootstrap.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.el b/bootstrap.el index 572f078d9..6e5072917 100644 --- a/bootstrap.el +++ b/bootstrap.el @@ -30,15 +30,15 @@ gc-cons-threshold 4388608 gc-cons-percentage 0.3) -(eval-when-compile +(eval-and-compile ;; Make sure that cask is in the right place (unless (eq 0 (call-process "which" nil nil nil "cask")) (error "Cask could not be found")) - (let ((cask-dir (cond (IS-MAC "/usr/local/Cellar/cask/HEAD") + (let ((cask-dir (cond (IS-MAC "/usr/local/share/emacs/site-lisp/cask") (t "~/.cask")))) (unless (file-exists-p cask-dir) (error "Cask folder not found")) - (add-to-list 'load-path cask-dir)) + (push cask-dir load-path)) ;; Helper for traversing subdirectories recursively (defun --subdirs (path &optional include-self)