bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#48681: Patch: Make prettify-symbols-mode work with ruby-mode


From: William Denton
Subject: bug#48681: Patch: Make prettify-symbols-mode work with ruby-mode
Date: Wed, 26 May 2021 21:54:55 -0400 (EDT)
User-agent: Alpine 2.22 (DEB 394 2020-01-19)

On 27 May 2021, Lars Ingebrigtsen wrote:

And then later the commented-out ?∧ (etc) stuff was removed, so I'm
wondering:

+(defconst ruby--prettify-symbols-alist
+  '(("and" . ?∧)
+    ("or" . ?∨))
+  "Value for `prettify-symbols-alist' in `ruby-mode'.")

Whether this is something that users of symbol prettification would
appreciate or not.  Since I use neither prettification or write Ruby, I
have no opinion here.  Perhaps Stefan has?  (Added to the CCs.)

This got me thinking, and I added four more prettifications (see attached patch) for &&, ||, <= and >=, which are all very basic.

I just hack on Ruby, but I use it a lot. I think that anyone writing Ruby in Emacs who already has prettify-symbols-mode turned on (and is seeing it work with Python, R, Org, etc.) would, when they see this start working, say, "Hey, that's nice."

Thanks for looking at the patch.

Cheers,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.

Attachment: prettify-ruby-2.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]