helm/editor/emacs/install
2016-11-15 15:51:42 +01:00

27 lines
744 B
Bash
Executable file

#!/usr/bin/env bash
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
sudo pacman --noconfirm -S make emacs python2
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
git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d"
cd "$HOME/.emacs.d"
make install
make snippets
fi