Is there a way to exclude individual emojis?
Is there a way to exclude individual emojis from being displayed? Specifically, I don't want the text D: to ever be displayed as an emojy.
I think you need to remove these emojis from emojify-emojis and emojify-emojis and then call emojify-set-emoji-data
I think you need to remove these emojis from
emojify-emojisandemojify-emojisand then callemojify-set-emoji-data
Sorry, but your reply is a little confusing because it names the same variable twice. I have now spent the best part of an hour trying to prevent the ▶ character from being rendered in Unicode.
Could somebody perhaps provide a working solution or a guide for excluding specific single characters from being emojified?
Many thanks!
Just found a working solution:
;; Define and install the inhibit function once emojify is loaded:
(with-eval-after-load 'emojify
(defun my/emojify-inhibit-triangle (text beg end)
"Inhibit rendering of ▶ by emojify."
(string= text "▶"))
(add-to-list 'emojify-inhibit-functions #'my/emojify-inhibit-triangle))