mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 11:06:17 +00:00
[provisioning] install emacs via ppa in linux
This commit is contained in:
parent
a291159d11
commit
1c33b852ca
3 changed files with 19 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue