summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-25 21:46:08 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-25 21:46:08 +0100
commit76bcf01bfa5e9b0e9ebf05ed8179f4808c2c2a48 (patch)
treec4580642e1e2ea4859035e8f6f64beab4bcae3da /elisp/geiser-repl.el
parent03762c6d1aad191e258463c3c98818de3ba32854 (diff)
downloadgeiser-76bcf01bfa5e9b0e9ebf05ed8179f4808c2c2a48.tar.gz
geiser-76bcf01bfa5e9b0e9ebf05ed8179f4808c2c2a48.tar.bz2
Variable controlling geiser-autodoc-mode in REPL (on by default).
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r--elisp/geiser-repl.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 3e02f18..b4a7f9e 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -25,6 +25,7 @@
;;; Code:
+(require 'geiser-autodoc)
(require 'geiser-compile)
(require 'geiser-edit)
(require 'geiser-eval)
@@ -66,6 +67,11 @@ REPL buffer."
:type 'boolean
:group 'geiser-repl)
+(defcustom geiser-repl-autodoc-p t
+ "Whether to enable `geiser-autodoc-mode' in the REPL by default."
+ :type 'boolean
+ :group 'geiser-repl)
+
;;; Geiser REPL buffer/process:
@@ -150,7 +156,8 @@ REPL buffer."
(set (make-local-variable 'mode-line-process) nil)
(set (make-local-variable 'comint-prompt-regexp) geiser-repl--prompt-regex)
(set (make-local-variable 'comint-use-prompt-regexp) t)
- (set (make-local-variable 'comint-prompt-read-only) t))
+ (set (make-local-variable 'comint-prompt-read-only) t)
+ (when geiser-repl-autodoc-p (geiser-autodoc-mode 1)))
(define-key geiser-repl-mode-map "\C-cz" 'run-guile)
(define-key geiser-repl-mode-map "\C-c\C-z" 'run-guile)