summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index b6d083a..b66f4a2 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -268,7 +268,7 @@ interacting with the Geiser REPL is at your disposal.
(when (and geiser-mode
geiser-mode-start-repl-p
(not (geiser-repl--connection*)))
- (save-current-buffer (switch-to-geiser))))
+ (save-window-excursion (run-geiser geiser-impl--implementation))))
(defun turn-on-geiser-mode ()
"Enable `geiser-mode' (in a Scheme buffer)."