git clone https://github.com/MephistoMMM/memacs.git --single-branch --depth=1
mv ~/.emacs.d ~/.bak.emacs.d
# if you have latexmkrc file under your home
mv ~/.latexmkrc ~/.bak.latexmkrc
MacOS :
./scripts/install_emacs_mac.sh
Ubuntu:
./scripts/install_emacs_ubuntu.sh
./scripts/link_memacs.sh