Subject: bug#21679: [PATCH] 25.0.50; Use pretty symbols from Lisp mode in Scheme mode

From: Simen Heggestøyl <[email-masked]>
Date: Tue, 13 Oct 2015 20:25:19 +0200

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?= <[email-masked]>
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