switch to/from repl buffer, major-mode dependend.