editor/emacs/install: refactor

This commit is contained in:
Henrik Lissner 2016-11-15 15:51:42 +01:00
parent 48ec78999d
commit ed58ea298e

View file

@ -7,20 +7,18 @@ case "$OSTYPE" in
brew install emacs-mac --with-imagemagick --with-modern-icon --HEAD brew install emacs-mac --with-imagemagick --with-modern-icon --HEAD
;; ;;
linux*) linux*)
if [ -f /etc/arch-release ]; then if [[ -f /etc/arch-release ]]; then
sudo pacman --noconfirm -S make emacs python2 sudo pacman --noconfirm -S make emacs python2
elif [ -f /etc/debian_version ]; then elif [[ -f /etc/debian_version ]]; then
sudo apt-get install make emacs python sudo apt-get install make emacs python
fi fi
if [ ! -d ~/.cask ] if [[ ! -d ~/.cask ]]; then
then
curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
fi fi
esac esac
if [ ! -d "$HOME/.emacs.d" ]; if [[ ! -d "$HOME/.emacs.d" ]]; then
then
git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d" git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d"
cd "$HOME/.emacs.d" cd "$HOME/.emacs.d"
make install make install