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

Delay font-lock keyword removal? #450

Open
bennofs opened this issue Sep 21, 2017 · 0 comments
Open

Delay font-lock keyword removal? #450

bennofs opened this issue Sep 21, 2017 · 0 comments

Comments

@bennofs
Copy link

bennofs commented Sep 21, 2017

When using js2-mode together with color-identifiers-mode, then there is an ugly flash where every word in the buffer is colored (even in comments) when a new js file is opened. I tracked this down to the use of (setq font-lock-defaults nil) in js2-mode. I think the issue is that this removes all font-lock keywords/comments so color-identifiers-mode thinks that everything is a variable. Is it possible to delay the removal until the initial parsing of the buffer has finished? (so even if it may not be 100% correct, it would be mostly correct until the initial parsing finishes).

Here's how it looks:

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