summaryrefslogtreecommitdiff
path: root/elisp/geiser-guile.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-11 04:06:57 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-11 04:06:57 +0100
commit24e2adca8be0e5b4f08a3434c29591cba83d73dd (patch)
treeacee0fe8bede00247e9f8b10b0f17c05e50314c5 /elisp/geiser-guile.el
parentd84fe6278c5bac2e9eb322ecac3e2883dd95d494 (diff)
downloadgeiser-guile-24e2adca8be0e5b4f08a3434c29591cba83d73dd.tar.gz
geiser-guile-24e2adca8be0e5b4f08a3434c29591cba83d73dd.tar.bz2
Support for multiple Scheme implementations, Chapter 2.
* The REPL is aware of multiple implementations... * and it knows how to create more than one connection for guile; * but it's not been tested with more than one implementation. * geiser-mode seems to be able to keep track of active REPLs.
Diffstat (limited to 'elisp/geiser-guile.el')
-rw-r--r--elisp/geiser-guile.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index fde2954..a34e4d6 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -57,11 +57,20 @@
This function uses `geiser-guile-init-file' if it exists."
(let ((init-file (and (stringp geiser-guile-init-file)
(expand-file-name geiser-guile-init-file))))
- `("-p" "-L" ,(expand-file-name "guile/" geiser-scheme-dir)
+ `("-q" "-L" ,(expand-file-name "guile/" geiser-scheme-dir)
,@(and init-file (file-readable-p init-file) (list "-l" init-file)))))
(defconst geiser-guile-prompt-regexp "^[^() \n]+@([^)]*?)> ")
+(defun switch-to-guile (&optional ask)
+ (interactive "P")
+ (switch-to-geiser ask 'guile))
+
+(defun run-guile ()
+ "Run Geiser using Guile."
+ (interactive)
+ (run-geiser 'guile))
+
;;; Evaluation support: