summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)