From: "Simen Heggestøyl" <simenheg@gmail.com>
To: 21679@debbugs.gnu.org
Subject: bug#21679: [PATCH] 25.0.50; Use pretty symbols from Lisp mode in Scheme mode
Date: Tue, 13 Oct 2015 20:25:19 +0200 [thread overview]
Message-ID: <1444760719.6514.0@smtp.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2015-10-13 18:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-13 18:25 Simen Heggestøyl [this message]
2016-02-23 8:57 ` bug#21679: [PATCH] 25.0.50; Use pretty symbols from Lisp mode in Scheme mode Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1444760719.6514.0@smtp.gmail.com \
--to=simenheg@gmail.com \
--cc=21679@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.