This configuration is originally cloned redguardtoo's emacs.d.