summaryrefslogtreecommitdiff
path: root/elisp/geiser-mode.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-05 22:53:47 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-05 22:53:47 +0100
commit9e91cef8b3d10e7eab88cc16d425fefc36c7321d (patch)
treebe7011aff12aa30b0c2521771b0642b7692f454c /elisp/geiser-mode.el
parentefe21b1337f02095cf40791f8b0c237ae56c39a0 (diff)
downloadgeiser-chez-9e91cef8b3d10e7eab88cc16d425fefc36c7321d.tar.gz
geiser-chez-9e91cef8b3d10e7eab88cc16d425fefc36c7321d.tar.bz2
turn-on/off-geiser-mode commands added and used in scheme-mode-hook.
Diffstat (limited to 'elisp/geiser-mode.el')
-rw-r--r--elisp/geiser-mode.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index 855f071..f85b530 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -158,6 +158,16 @@ interacting with the Geiser REPL is at your disposal.
(when geiser-mode-autodoc-p (geiser-autodoc-mode geiser-mode))
(when geiser-mode-smart-tab-p (geiser-smart-tab-mode geiser-mode)))
+(defun turn-on-geiser-mode ()
+ "Enable `geiser-mode' (in a Scheme buffer)."
+ (interactive)
+ (geiser-mode 1))
+
+(defun turn-off-geiser-mode ()
+ "Disable `geiser-mode' (in a Scheme buffer)."
+ (interactive)
+ (geiser-mode -1))
+
;;; Keys: