all repos — nixfiles @ 7172c6e38f35d6e076dff3af84094c141f2203da

System and user configuration, managed by nix and home-manager

hooks/post-up/emacs (view raw)

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/elisp
fi