editor/emacs: refactor + don't install HEAD w/ homebrew
This commit is contained in:
parent
044f0ff26b
commit
2d584f0ac8
|
@ -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
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue