summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/elisp/geiser.el b/elisp/geiser.el
index ab3e7ff..abf41d4 100644
--- a/elisp/geiser.el
+++ b/elisp/geiser.el
@@ -55,5 +55,15 @@
"Minor mode adding Geiser REPL interaction to Scheme buffers." t)
+;;; Scheme mode setup:
+
+(defun geiser-setup-scheme-mode ()
+ (eval-after-load "scheme"
+ '(add-hook 'scheme-mode-hook (lambda () (interactive) (geiser-mode 1)))))
+
+(defun geiser-setup ()
+ (geiser-setup-scheme-mode))
+
+
(provide 'geiser)
;;; geiser.el ends here