From 9e91cef8b3d10e7eab88cc16d425fefc36c7321d Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Thu, 5 Mar 2009 22:53:47 +0100 Subject: turn-on/off-geiser-mode commands added and used in scheme-mode-hook. --- elisp/geiser.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'elisp/geiser.el') diff --git a/elisp/geiser.el b/elisp/geiser.el index ea41779..8a62ea5 100644 --- a/elisp/geiser.el +++ b/elisp/geiser.el @@ -57,6 +57,12 @@ (autoload 'geiser-mode "geiser-mode.el" "Minor mode adding Geiser REPL interaction to Scheme buffers." t) +(autoload 'turn-on-geiser-mode "geiser-mode.el" + "Enable Geiser's mode (useful in Scheme buffers)." t) + +(autoload 'turn-off-geiser-mode "geiser-mode.el" + "Disable Geiser's mode (useful in Scheme buffers)." t) + (mapc (lambda (group) (custom-add-load group (symbol-name group)) (custom-add-load 'geiser (symbol-name group))) @@ -67,7 +73,7 @@ (defun geiser-setup-scheme-mode () (eval-after-load "scheme" - '(add-hook 'scheme-mode-hook (lambda () (interactive) (geiser-mode 1))))) + '(add-hook 'scheme-mode-hook 'turn-on-geiser-mode))) (defun geiser-setup () (geiser-setup-scheme-mode)) -- cgit v1.2.3