summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-09 21:58:10 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-09 21:58:10 +0100
commit8190670d6c47aea92871bc6f196dbc2c05904812 (patch)
tree278b5bab8de7b752fc00a4894d5ba7a0e0ec962e /elisp/geiser-repl.el
parent279a07ef71cfb43f97192e059e35d4147f9074e5 (diff)
downloadgeiser-8190670d6c47aea92871bc6f196dbc2c05904812.tar.gz
geiser-8190670d6c47aea92871bc6f196dbc2c05904812.tar.bz2
Better bindings for M-p, M-n in geiser repl.
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r--elisp/geiser-repl.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 1353019..e39284b 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -130,7 +130,6 @@ the Geiser REPL buffer."
(interactive)
(when (= (point) (comint-bol)) (beginning-of-line)))
-;;;###autoload
(define-derived-mode geiser-repl-mode comint-mode "Geiser REPL"
"Major mode for interacting with an inferior Guile repl process.
\\{geiser-repl-mode-map}"
@@ -141,7 +140,13 @@ the Geiser REPL buffer."
(define-key geiser-repl-mode-map "\C-cz" 'run-guile)
(define-key geiser-repl-mode-map "\C-c\C-z" 'run-guile)
(define-key geiser-repl-mode-map "\C-a" 'geiser-repl--bol)
-;; (define-key geiser-repl-mode-map "\C-ca" 'geiser-autodoc-mode)
+(define-key geiser-repl-mode-map "\C-ca" 'geiser-autodoc-mode)
+
+(define-key geiser-repl-mode-map "\M-p" 'comint-previous-matching-input-from-input)
+(define-key geiser-repl-mode-map "\M-n" 'comint-next-matching-input-from-input)
+(define-key geiser-repl-mode-map "\C-c\M-p" 'comint-previous-input)
+(define-key geiser-repl-mode-map "\C-c\M-n" 'comint-next-input))
+
;; (define-key geiser-repl-mode-map "\C-ch" 'geiser-help)
;; (define-key geiser-repl-mode-map "\C-cp" 'geiser-apropos)
;; (define-key geiser-repl-mode-map "\M-." 'geiser-edit-word-at-point)