fix(sh): eagerly load sh-script mode when opening a REPL

This is to bring the `sh-shell` variable in scope, when it otherwise
would not be if a `Sh` buffer hadn't yet been opened in the current
Emacs session.
This commit is contained in:
Colin Woodbury 2023-02-26 19:14:11 +09:00 committed by Henrik Lissner
parent d9f3d5c2f1
commit d9f18e6040

View file

@ -30,6 +30,7 @@
(defun +sh/open-repl () (defun +sh/open-repl ()
"Open a shell REPL." "Open a shell REPL."
(interactive) (interactive)
(require 'sh-script)
(let* ((dest-sh (symbol-name sh-shell)) (let* ((dest-sh (symbol-name sh-shell))
(sh-shell-file dest-sh)) (sh-shell-file dest-sh))
(sh-shell-process t) (sh-shell-process t)