helm/editor/emacs/install

27 lines
736 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2016-10-19 07:56:37 -07:00
case "$OSTYPE" in
darwin*)
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
sudo pacman --needed --noconfirm -S make emacs
2016-11-15 06:51:42 -08:00
elif [[ -f /etc/debian_version ]]; then
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
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