summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-plt.el3
-rw-r--r--scheme/plt/geiser.ss15
2 files changed, 9 insertions, 9 deletions
diff --git a/elisp/geiser-plt.el b/elisp/geiser-plt.el
index 4fd4de3..58c38a5 100644
--- a/elisp/geiser-plt.el
+++ b/elisp/geiser-plt.el
@@ -60,7 +60,8 @@ This function uses `geiser-plt-init-file' if it exists."
,@(apply 'append (mapcar (lambda (p) (list "-S" p)) geiser-plt-collects))
,@(and (listp geiser-plt-binary) (cdr geiser-plt-binary))
,@(and init-file (file-readable-p init-file) (list "-f" init-file))
- "-f" ,(expand-file-name "plt/geiser.ss" geiser-scheme-dir))))
+ "-f" ,(expand-file-name "plt/geiser.ss" geiser-scheme-dir)
+ "-e" "(require 'geiser)")))
(defconst geiser-plt--prompt-regexp "^=?mzscheme@[^ ]*?> ")
diff --git a/scheme/plt/geiser.ss b/scheme/plt/geiser.ss
index a86b6a9..4df9b51 100644
--- a/scheme/plt/geiser.ss
+++ b/scheme/plt/geiser.ss
@@ -11,13 +11,14 @@
;;; Code:
-(require version/utils)
-(unless (version<=? "4.1.5.5" (version))
- (error 'geiser
- "Mzscheme version 4.1.5.5 or better required (found ~a)"
- (version)))
-
(module geiser scheme
+
+ (require version/utils)
+ (unless (version<=? "4.2" (version))
+ (error 'geiser
+ "Mzscheme version 4.2 or better required (found ~a)"
+ (version)))
+
(provide geiser:eval
geiser:compile
geiser:load-file
@@ -55,6 +56,4 @@
(current-prompt-read (compose (make-repl-reader (current-prompt-read))
current-namespace)))
-(require 'geiser)
-
;;; geiser.ss ends here