summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorRay Racine <ray.racine@gmail.com>2013-02-02 13:05:44 -0500
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-02-03 00:51:10 +0100
commit4216f03e75ec39fcb6d442eeec957f46c493ad82 (patch)
tree94d2b180e3f089e291d8b3f4d3926950cfec4777 /elisp
parent30c8dece764d740fba70fd2659e02f8115283ba0 (diff)
downloadgeiser-4216f03e75ec39fcb6d442eeec957f46c493ad82.tar.gz
geiser-4216f03e75ec39fcb6d442eeec957f46c493ad82.tar.bz2
Insert Greek letter lambda.
Diffstat (limited to 'elisp')
-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)