GNU bug report logs -
#21679
[PATCH] 25.0.50; Use pretty symbols from Lisp mode in Scheme mode
Previous Next
Reported by: Simen Heggestøyl <simenheg <at> gmail.com>
Date: Tue, 13 Oct 2015 18:26:02 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 26.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Lisp mode has a `prettify-symbols-alist' for prettifying lambda as λ.
Let's give Scheme mode pretty lambdas too, by borrowing Lisp mode's
`prettify-symbols-alist'.
From 9ee4a43831830d3bb420453cb3082568122e9190 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <simenheg <at> gmail.com>
Date: Sun, 11 Oct 2015 10:29:36 +0200
Subject: [PATCH] Use pretty symbols from Lisp mode in Scheme mode
* lisp/progmodes/scheme.el (scheme-mode-variables): Borrow
`prettify-symbols-alist' from Lisp mode.
---
lisp/progmodes/scheme.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el
index e921e84..549f09b 100644
--- a/lisp/progmodes/scheme.el
+++ b/lisp/progmodes/scheme.el
@@ -156,6 +156,7 @@
nil t (("+-*/.<>=!?$%_&~^:" . "w") (?#. "w 14"))
beginning-of-defun
(font-lock-mark-block-function . mark-defun)))
+ (setq-local prettify-symbols-alist lisp--prettify-symbols-alist)
(setq-local lisp-doc-string-elt-property 'scheme-doc-string-elt))
(defvar scheme-mode-line-process "")
--
2.6.1
[Message part 2 (text/html, inline)]
This bug report was last modified 8 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.