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

Order not respected #35

Open
fniessen opened this issue Feb 21, 2019 · 2 comments
Open

Order not respected #35

fniessen opened this issue Feb 21, 2019 · 2 comments

Comments

@fniessen
Copy link

Hello, first, thanks for this highlight package that uses overlays, and thus allows to highlight the line, while still being visible!!

Now, just played with it, and the M-n/p key bindings, with common words such as "in" and "if" in a buffer. It's weird, it's skipping some patterns.

(It's good that you can move from one highlight to the next highlighted occurrence, whichever the pattern -- very nice!)

@fniessen
Copy link
Author

The title should be "Some patterns are skipped"!

@dakra
Copy link
Contributor

dakra commented Feb 21, 2019

There is a symbol-overlay-ignore-functions variable you probably missed.

From the docstring:

Functions to determine whether a symbol should be ignored.

This is an association list that maps a MAJOR-MODE symbol to a
function that determines whether a symbol should be ignored. For
instance, such a function could use a major mode's font-lock
definitions to prevent a language's keywords from getting highlighted.

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

2 participants