unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21679: [PATCH] 25.0.50; Use pretty symbols from Lisp mode in Scheme mode
@ 2015-10-13 18:25 Simen Heggestøyl
  2016-02-23  8:57 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Simen Heggestøyl @ 2015-10-13 18:25 UTC (permalink / raw)
  To: 21679

[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]

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@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



[-- Attachment #2: Type: text/html, Size: 1674 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#21679: [PATCH] 25.0.50; Use pretty symbols from Lisp mode in Scheme mode
  2015-10-13 18:25 bug#21679: [PATCH] 25.0.50; Use pretty symbols from Lisp mode in Scheme mode Simen Heggestøyl
@ 2016-02-23  8:57 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-23  8:57 UTC (permalink / raw)
  To: Simen Heggestøyl; +Cc: 21679

Simen Heggestøyl <simenheg@gmail.com> writes:

> * lisp/progmodes/scheme.el (scheme-mode-variables): Borrow
> `prettify-symbols-alist' from Lisp mode.

Thanks; applied to the Emacs trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-23  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-13 18:25 bug#21679: [PATCH] 25.0.50; Use pretty symbols from Lisp mode in Scheme mode Simen Heggestøyl
2016-02-23  8:57 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).