record the packages installed by emacs

This way we can quickly restore the emacs environment in a new machine.