Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fontification of prettified symbols #152

Open
wedens opened this issue Dec 4, 2018 · 1 comment
Open

Fontification of prettified symbols #152

wedens opened this issue Dec 4, 2018 · 1 comment

Comments

@wedens
Copy link

wedens commented Dec 4, 2018

With (setq prettify-symbols-unprettify-at-point 'right-edge) prettified symbol loses its face property after the cursor is placed on it:

peek 2018-12-04 10-52

There is no such issue in other major modes, so it must be something happening in scala-mode specifically.

My setup is basically the same as https://github.com/hlissner/doom-emacs/blob/develop/modules/ui/pretty-code/%2Bfira.el#L6

Emacs 27.0.50
scala-mode 56cba29

@wedens
Copy link
Author

wedens commented Dec 4, 2018

I think the problem is that when prettify-symbols-mode tries to re-fontify the symbol, it doesn't have context (and => seems to be fontified contextually):
(apply #'font-lock-flush prettify-symbols--current-symbol-bounds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant