FIX: Get pkg list before auto-installing emacs pkgs

Otherwise, it does not work!