diff --git a/recipes/_apt b/recipes/_apt index 3c4a85e..ba5fc35 100644 --- a/recipes/_apt +++ b/recipes/_apt @@ -1,4 +1,5 @@ #!/bin/bash +set +e if [ -z "$__apt_updated" ]; then _run "Update APT cache" sudo apt-get update @@ -13,3 +14,9 @@ function _apt { echo "[apt] $pkg is already installed, skipping." fi } + +_apt software-properties-common + +function _ppa { + _run "[apt] Add PPA: $1" sudo add-apt-repository -u -y ppa:$1 +} diff --git a/recipes/emacs b/recipes/emacs index a13803b..6c38746 100644 --- a/recipes/emacs +++ b/recipes/emacs @@ -8,7 +8,9 @@ case $_PLATFORM in _brew emacs --with-cocoa --with-librsvg --with-imagemagick@6 ;; linux) - _brew emacs --with-librsvg --with-imagemagick@6 + _recipe _apt + _ppa ubuntu-elisp/ppa + _apt emacs25 ;; esac diff --git a/recipes/email b/recipes/email index 6c7a6f4..37698ad 100644 --- a/recipes/email +++ b/recipes/email @@ -5,7 +5,15 @@ _recipe brew _brew isync _recipe emacs -EMACS=$(which emacs) _brew mu --with-emacs --HEAD +case $_PLATFORM in + darwin) + EMACS=$(which emacs) _brew mu --with-emacs --HEAD + ;; + *) + _recipe apt + _apt maildir-utils + ;; +esac _recipe nvm _npm imapnotify