helm/editor/emacs/install
2017-03-19 02:02:23 -04:00

22 lines
562 B
Bash
Executable file

#!/usr/bin/env bash
case "$OSTYPE" in
darwin*)
brew tap railwaycat/emacsmacport
brew install emacs-mac --with-imagemagick --with-modern-icon --HEAD
;;
linux*)
if [[ -f /etc/arch-release ]]; then
sudo pacman --needed --noconfirm -S make emacs
elif [[ -f /etc/debian_version ]]; then
sudo apt-get install -y make emacs
fi
;;
esac
if [[ ! -d "$HOME/.emacs.d" ]]; then
git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d"
cd "$HOME/.emacs.d"
make install
fi