diff --git a/modules/lang/sh/autoload.el b/modules/lang/sh/autoload.el index 886cfcad1..9310e63e6 100644 --- a/modules/lang/sh/autoload.el +++ b/modules/lang/sh/autoload.el @@ -29,8 +29,10 @@ ;;;###autoload (defun +sh/open-repl () "Open a shell REPL." + (interactive) (let* ((dest-sh (symbol-name sh-shell)) (sh-shell-file dest-sh)) (sh-shell-process t) (with-current-buffer "*shell*" - (rename-buffer (format "*shell [%s]*" dest-sh))))) + (rename-buffer (format "*shell [%s]*" dest-sh)) + (current-buffer))))