all repos — archive/dotfiles @ 325426abd41894fad8e1264d72593f03d4e5cc8c

Superseded by nixfiles

Emacs: fix cask loading to follow official usage
Alan Pearce alan@alanpearce.co.uk
Sun, 09 Mar 2014 15:58:29 +0000
commit

325426abd41894fad8e1264d72593f03d4e5cc8c

parent

d121a8e2253541e1f9606c31d27807d349409e3a

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

jump to
M emacs/init.elemacs/init.el
@@ -58,10 +58,10 @@ ;;;; Package Management
 (add-to-list 'load-path (expand-file-name "elisp/" user-emacs-directory))
 
-(let ((cask-file (expand-file-name "cask.el" user-emacs-directory)))
-  (if (file-exists-p cask-file)
+(let ((cask-dir (expand-file-name "~/.cask")))
+  (if (file-exists-p cask-dir)
       (progn
-        (add-to-list 'load-path (file-name-directory (file-truename cask-file)))
+        (add-to-list 'load-path cask-dir)
         (require 'cask)
         (cask-initialize))
     (eval-and-compile