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
commit267fde61250a698c1abc8201ca2445a6f462d03a (patch)
treefe5626493669bb48a2ccee4765dde04f51c2baee /elisp/geiser-mode.el
parent8c65dfa97c3c858b967e98c152285b306087cc4e (diff)
downloadgeiser-267fde61250a698c1abc8201ca2445a6f462d03a.tar.gz
geiser-267fde61250a698c1abc8201ca2445a6f462d03a.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: