Change mode name and buffer name.