summaryrefslogtreecommitdiff
path: root/elisp/geiser.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-09 22:00:20 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-09 22:00:20 +0100
commit72044e719d28ff89c77e0513e7b9e5d760b45d5e (patch)
tree3d3598a1c227f2a583ea2a2c89c60ff8364c4892 /elisp/geiser.el
parent4e16a7a00ffdc62d46143f614055d7aaf191ad9e (diff)
downloadgeiser-72044e719d28ff89c77e0513e7b9e5d760b45d5e.tar.gz
geiser-72044e719d28ff89c77e0513e7b9e5d760b45d5e.tar.bz2
GEISER-SETUP function activating geiser-mode in scheme files.
Diffstat (limited to 'elisp/geiser.el')
-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