helm/editor/+emacs/install

20 lines
558 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2016-10-19 07:56:37 -07:00
2017-04-29 15:22:33 -07:00
case $OSTYPE in
2016-10-19 07:56:37 -07:00
darwin*)
2017-04-29 15:22:33 -07:00
brew install emacs --with-modules --with-librsvg --with-imagemagick --with-gnutls --with-cocoa
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
2017-08-09 06:43:07 -07:00
git clone --recursive "https://github.com/hlissner/.emacs.d" ~/.emacs.d
cd ~/.emacs.d && YES=1 make install
2017-04-29 15:22:33 -07:00
fi