2016-10-22 05:03:53 -07:00
|
|
|
#!/usr/bin/env bash
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
case "$OSTYPE" in
|
|
|
|
darwin*)
|
|
|
|
brew install make cask python
|
|
|
|
brew tap railwaycat/emacsmacport
|
|
|
|
brew install emacs-mac --with-imagemagick --with-modern-icon --HEAD
|
|
|
|
;;
|
|
|
|
linux*)
|
|
|
|
if [ -f /etc/arch-release ]; then
|
2016-10-22 05:03:53 -07:00
|
|
|
sudo pacman --noconfirm -S make emacs python2
|
2016-10-19 07:56:37 -07:00
|
|
|
elif [ -f /etc/debian_version ]; then
|
|
|
|
sudo apt-get install make emacs python
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d ~/.cask ]
|
|
|
|
then
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
|
|
|
|
fi
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ ! -d "$HOME/.emacs.d" ];
|
|
|
|
then
|
|
|
|
repo "hlissner/.emacs.d" "$HOME/.emacs.d"
|
|
|
|
cd "$HOME/.emacs.d"
|
|
|
|
make install
|
|
|
|
make snippets
|
|
|
|
fi
|