From ceae0dbab79e93e45294345de3cd167f715d709f Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 23 Apr 2018 13:49:26 -0400 Subject: [PATCH] [provisioning] Use emacs-mac in OSX --- recipes/brew | 9 +++++++++ recipes/emacs | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/recipes/brew b/recipes/brew index 6eb1b14..f78bfd0 100644 --- a/recipes/brew +++ b/recipes/brew @@ -20,6 +20,15 @@ function _brew_cask { fi } +function _brew_tap { + local tap=$1 + if ! brew tap | grep "^$tap$" >/dev/null 2>&1; then + _run "[brew tap] Tap repository $tap" brew tap $@ + else + echo "[brew tap] $tap is already present, skipping." + fi +} + case "$(uname -s)" in Darwin) if ! which brew >/dev/null; then diff --git a/recipes/emacs b/recipes/emacs index 202e766..9868a1e 100644 --- a/recipes/emacs +++ b/recipes/emacs @@ -6,7 +6,8 @@ _recipe brew case $_PLATFORM in darwin) - _brew emacs --with-cocoa --with-librsvg --with-imagemagick@6 + _brew_tap railwaycat/emacsmacport + _brew emacs-mac --with-modern-icon ;; linux) _recipe _apt