summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-edit.el8
-rw-r--r--elisp/geiser-mode.el1
2 files changed, 9 insertions, 0 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index 06ae1d1..874c9fc 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -234,6 +234,14 @@ With prefix, asks for the symbol to edit."
(geiser-completion--read-module)))
(when marker (ring-insert find-tag-marker-ring marker))))
+
+;; Editing key bindings
+
+(defun geiser-edit-insert-lambda ()
+ "Insert λ at point."
+ (interactive)
+ (insert-char ?λ 1))
+
(provide 'geiser-edit)
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index fc7715a..6df82a7 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -321,6 +321,7 @@ interacting with the Geiser REPL is at your disposal.
(custom "Customize Geiser mode" geiser-mode))
(define-key geiser-mode-map [menu-bar scheme] 'undefined)
+(define-key geiser-mode-map "\C-\\" 'geiser-edit-insert-lambda)
;; (geiser-mode--triple-chord ?x ?m 'geiser-xref-generic-methods)