summaryrefslogtreecommitdiff
path: root/elisp/geiser-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-mode.el')
-rw-r--r--elisp/geiser-mode.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index 57fb84e..3e9e3c1 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -131,6 +131,13 @@ With prefix, recursively macro-expand the resulting expression."
(interactive "P")
(geiser-expand-region (save-excursion (backward-sexp) (point)) (point) all))
+(defun geiser-set-scheme ()
+ "Associates current buffer with a given Scheme implementation."
+ (interactive)
+ (let ((impl (geiser-impl--read-impl)))
+ (geiser-impl--set-buffer-implementation impl)
+ (geiser-repl--get-repl impl)))
+
;;; Geiser mode: