[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser 0e189dfb1e 2/3: Merge commit 'refs/pullreqs/20'
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/geiser 0e189dfb1e 2/3: Merge commit 'refs/pullreqs/20' |
Date: |
Mon, 15 Jan 2024 16:04:12 -0500 (EST) |
branch: elpa/geiser
commit 0e189dfb1e531c7b2609c5865659badec7cb6f28
Merge: d25b2a3e17 cfe14bf110
Author: jao <jao@gnu.org>
Commit: jao <jao@gnu.org>
Merge commit 'refs/pullreqs/20'
---
elisp/geiser-edit.el | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index 0f2b080f0f..df4231c909 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -298,13 +298,22 @@ With prefix, asks for the symbol to locate."
(when marker (xref-push-marker-stack marker))
t)))
+(geiser-custom--defcustom geiser-insert-actual-lambda t
+ "Whether geiser-insert-lambda should insert \"λ\" or \"lambda\"."
+ :type 'boolean)
+
(defun geiser-insert-lambda (&optional full)
- "Insert λ at point. With prefix, inserts (λ ())."
+ "Insert λ or lambda at point. With prefix, inserts (λ ()) or (lambda ()).
+
+See also `geiser-insert-actual-lambda'."
(interactive "P")
- (if (not full)
- (insert (make-char 'greek-iso8859-7 107))
- (insert "(" (make-char 'greek-iso8859-7 107) " ())")
- (backward-char 2)))
+ (let ((sym (if geiser-insert-actual-lambda
+ (make-char 'greek-iso8859-7 107)
+ "lambda")))
+ (if (not full)
+ (insert sym)
+ (insert "(" sym " ())")
+ (backward-char 2))))
(defun geiser-squarify (n)
"Toggle between () and [] for current form.