From d9f18e6040d5aa96245f93ccd864163c2eab82c0 Mon Sep 17 00:00:00 2001 From: Colin Woodbury Date: Sun, 26 Feb 2023 19:14:11 +0900 Subject: [PATCH] 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. --- modules/lang/sh/autoload.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/lang/sh/autoload.el b/modules/lang/sh/autoload.el index 0c5cc686b..d385c289c 100644 --- a/modules/lang/sh/autoload.el +++ b/modules/lang/sh/autoload.el @@ -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)