summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-17 21:34:00 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-17 21:34:00 +0200
commit7b9260d93d355ce574b0c5037697a542b9abe610 (patch)
treeb1cd90d3142673893f2ebe66008d18f7fd3a2a3c /elisp
parent97358e6e2cb36c1ada0cdfa4a64ed875029dca3f (diff)
downloadgeiser-7b9260d93d355ce574b0c5037697a542b9abe610.tar.gz
geiser-7b9260d93d355ce574b0c5037697a542b9abe610.tar.bz2
Read-only-ness of REPL prompt customizable.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-repl.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 4ed7903..f4d85dc 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -70,6 +70,11 @@ implementation name gets appended to it."
:type 'boolean
:group 'geiser-repl)
+(defcustom geiser-repl-read-only-prompt-p t
+ "Whether the REPL's prompt should be read-only."
+ :type 'boolean
+ :group 'geiser-repl)
+
;;; Geiser REPL buffers and processes:
@@ -277,7 +282,8 @@ If no REPL is running, execute `run-geiser' to start a fresh one."
\\{geiser-repl-mode-map}"
(set (make-local-variable 'mode-line-process) nil)
(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)
+ geiser-repl-read-only-prompt-p)
(set (make-local-variable 'beginning-of-defun-function)
'geiser-repl--beginning-of-defun)
(set-syntax-table scheme-mode-syntax-table)