helm/editor/+emacs/install

21 lines
554 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2016-10-19 07:56:37 -07:00
case "$OSTYPE" in
darwin*)
brew tap railwaycat/emacsmacport
brew install emacs-mac --with-imagemagick --with-modern-icon
2016-10-19 07:56:37 -07:00
;;
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
2017-03-18 23:02:23 -07:00
;;
2016-10-19 07:56:37 -07:00
esac
2016-11-15 06:51:42 -08:00
if [[ ! -d "$HOME/.emacs.d" ]]; then
git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d"
cd "$HOME/.emacs.d" && make install
2016-10-19 07:56:37 -07:00
fi