Switch to/from repl buffer for current major-mode