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

if [[ -s $commands[emacs] ]]
then
	if [[ -s $commands[cask] ]]
	then
		pushd ~/.emacs.d
		cask install
		popd
	fi
	emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/
fi