change M-x in Emacs and fix to delay with escape key