update config + fix bug for terminal emacs + add melpa repo