summary refs log tree commit diff stats
path: root/hooks/post-up/emacs
blob: 8bd760968730dd9d3d6ebbf5d3c6b5739cfa7a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env zsh

if [[ -s $commands[emacs] ]]
then
	if [[ -z $commands[cask] ]]
	then
		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