Fork me on GitHub
#emacs
<
2020-01-04
>
theeternalpulse05:01:54

Is there already a package that will grep text in a buffer and allow you to display a unicode character instead?

andy.fingerhut05:01:22

It is not clear to me what you mean by "instead". Instead of what?

theeternalpulse05:01:27

instead of the grepped text.

andy.fingerhut05:01:53

So for example you want to search for the string "favorite-string", and for every on which it is found, show the line with "favorite-string" replaced with some other character in its place?

andy.fingerhut05:01:19

but not actually do the replacement? That is, you only want to see the matching lines, without modifying the text of the buffer?

theeternalpulse05:01:49

kind of like a font face that translates to a unicode character

theeternalpulse06:01:14

I guess I can look into how emojify does it

Jcaw19:01:47

@theeternalpulse Guessing you want prettify-symbols-mode

Jcaw19:01:46

Are you looking to display ligatures? There's an implementation using prettify-symbols for Fira Code.

theeternalpulse20:01:07

Yes this is what I'm looking for. Not exactly sure what ligatures are outside of the reference to fira code, but I don't particularly like that font set.

👍 4
theeternalpulse20:01:48

it's also not necessarily for code, mainly various text and org things I am thinking of testing out