editor/emacs: refactor + don't install HEAD w/ homebrew

This commit is contained in:
Henrik Lissner 2017-04-25 20:02:24 -04:00
parent 044f0ff26b
commit 2d584f0ac8
2 changed files with 3 additions and 4 deletions

View file

@ -3,7 +3,7 @@
case "$OSTYPE" in case "$OSTYPE" in
darwin*) darwin*)
brew tap railwaycat/emacsmacport brew tap railwaycat/emacsmacport
brew install emacs-mac --with-imagemagick --with-modern-icon --HEAD brew install emacs-mac --with-imagemagick --with-modern-icon
;; ;;
linux*) linux*)
if [[ -f /etc/arch-release ]]; then if [[ -f /etc/arch-release ]]; then
@ -16,6 +16,5 @@ esac
if [[ ! -d "$HOME/.emacs.d" ]]; then if [[ ! -d "$HOME/.emacs.d" ]]; then
git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d" git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d"
cd "$HOME/.emacs.d" cd "$HOME/.emacs.d" && make install
make install
fi fi

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
[[ -d ~/.emacs.d ]] && { cd ~/.emacs.d && YES=1 make update; } [[ -f ~/.emacs.d/Makefile ]] && { cd ~/.emacs.d && YES=1 make update; }