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:
parent
d9f3d5c2f1
commit
d9f18e6040
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue