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: Lars Ingebrigtsen
Subject: bug#48681: Patch: Make prettify-symbols-mode work with ruby-mode
Date: Sat, 29 May 2021 08:10:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Dmitry Gutov <dgutov@yandex.ru> writes:

> I'd recommend to just use the list from perl-mode:
>
>   '(("->"  . ?→)
>     ("=>"  . ?⇒)
>     ("::" . ?∷))
>
> and also add the ("lambda" . ?λ) mapping to it.

I've now applied William's patch, tweaking for the comments from Stefan
and Dmitry, and ended up with:

(defconst ruby--prettify-symbols-alist
  '(("<=" . ?≤)
    (">=" . ?≥)
    ("->"  . ?→)
    ("=>"  . ?⇒)
    ("::" . ?∷)
    ("lambda" . ?λ))

Feel free to tweak further.

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





reply via email to

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