#! /bin/zsh # # this file: # http://user.it.uu.se/~embe8573/conf/.zsh/install-emacs # https://dataswamp.org/~incal/conf/.zsh/install-emacs # # original commands: # http://ergoemacs.org/emacs/building_emacs_from_git_repository.html export EMACS_SOURCE=https://github.com/mirrors/emacs.git prepare-emacs-install () { local ver=${1:-$(emacs --version | head -n 1 | awk '{print $3}' | cut -d '.' -f 1)} local emacs_pack=emacs${ver} sudo apt-get update > /dev/null sudo apt-get install build-essential sudo apt-get build-dep $emacs_pack } reset-emacs-source () { git reset --hard git clean -xdf git pull $EMACS_SOURCE } get-emacs-source () { git clone $EMACS_SOURCE } # $ ./autogen.sh # $ ./configure --with-modules # $ make # # make install