summary refs log tree commit diff stats
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-up/emacs14
1 files changed, 10 insertions, 4 deletions
diff --git a/hooks/post-up/emacs b/hooks/post-up/emacs
index 6b04ae06..8bd76096 100755
--- a/hooks/post-up/emacs
+++ b/hooks/post-up/emacs
@@ -2,11 +2,17 @@
 
 if [[ -s $commands[emacs] ]]
 then
-	if [[ -s $commands[cask] ]]
+	if [[ -z $commands[cask] ]]
 	then
-		pushd ~/.emacs.d
-		cask install
-		popd
+		git clone git://github.com/cask/cask ~/.cask
+		if [[ ! -d ~/bin ]]
+		then
+			mkdir ~/bin
+		fi
+		ln -s ~/.cask/bin/cask ~/bin/cask
 	fi
+	pushd ~/.emacs.d
+	cask install
+	popd
 	emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/
 fi