start makeing function of reset_all_sys_modes, Fkill_emacs