blob: 0bd4d567e594dbc28173fb385d7c6bf88778f0b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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
emacs --batch --eval "(progn
(find-file \"init.org\")
(require 'ob-tangle)
(org-babel-tangle nil \"init.el\")
(byte-compile-file \"init.el\")
)"
popd
fi
|