This repository contains all my GNU Emacs configuration.
Just take a backup of your dotemacs and clone this repo:
git clone https://github.com/mrkatebzadeh/emacs.d ~/.emacs.d
It will take some time to install required packages.
If you’re using Mac OS X, follow the instruction here to install Zathura and get a live preview for your latex documents.