2016-10-22 05:03:53 -07:00
|
|
|
#!/usr/bin/env bash
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
case "$OSTYPE" in
|
|
|
|
darwin*)
|
2017-01-05 21:16:27 -08:00
|
|
|
brew install cask python
|
2016-10-19 07:56:37 -07:00
|
|
|
brew tap railwaycat/emacsmacport
|
|
|
|
brew install emacs-mac --with-imagemagick --with-modern-icon --HEAD
|
|
|
|
;;
|
|
|
|
linux*)
|
2016-11-15 06:51:42 -08:00
|
|
|
if [[ -f /etc/arch-release ]]; then
|
2016-12-24 12:57:44 -08:00
|
|
|
sudo pacman --needed --noconfirm -S make emacs
|
2016-11-15 06:51:42 -08:00
|
|
|
elif [[ -f /etc/debian_version ]]; then
|
2016-12-24 12:57:44 -08:00
|
|
|
sudo apt-get install -y make emacs
|
2016-10-19 07:56:37 -07:00
|
|
|
fi
|
|
|
|
|
2016-11-15 06:51:42 -08:00
|
|
|
if [[ ! -d ~/.cask ]]; then
|
2016-10-19 07:56:37 -07:00
|
|
|
curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
|
|
|
|
fi
|
|
|
|
esac
|
|
|
|
|
2016-11-15 06:51:42 -08:00
|
|
|
if [[ ! -d "$HOME/.emacs.d" ]]; then
|
2016-10-30 06:29:34 -07:00
|
|
|
git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d"
|
2016-10-19 07:56:37 -07:00
|
|
|
cd "$HOME/.emacs.d"
|
|
|
|
make install
|
|
|
|
make snippets
|
|
|
|
fi
|