summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-03-09 15:58:29 +0000
committerAlan Pearce2014-03-09 15:58:29 +0000
commit325426abd41894fad8e1264d72593f03d4e5cc8c (patch)
tree7bce62464b1892d8567d052350cb6632dc042a3a
parentd121a8e2253541e1f9606c31d27807d349409e3a (diff)
downloadnixfiles-325426abd41894fad8e1264d72593f03d4e5cc8c.tar.lz
nixfiles-325426abd41894fad8e1264d72593f03d4e5cc8c.tar.zst
nixfiles-325426abd41894fad8e1264d72593f03d4e5cc8c.zip
Emacs: fix cask loading to follow official usage
-rw-r--r--emacs/init.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 770b5dc8..6b1f80f8 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -58,10 +58,10 @@ Values: `desktop', `server', `laptop'")
 ;;;; 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