mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
committed by
Henrik Lissner
parent
d9f3d5c2f1
commit
d9f18e6040
@ -30,6 +30,7 @@
|
||||
(defun +sh/open-repl ()
|
||||
"Open a shell REPL."
|
||||
(interactive)
|
||||
(require 'sh-script)
|
||||
(let* ((dest-sh (symbol-name sh-shell))
|
||||
(sh-shell-file dest-sh))
|
||||
(sh-shell-process t)
|
||||
|
Reference in New Issue
Block a user