nschum / highlight-symbol.el

Emacs: automatic and manual symbol highlighting
http://nschum.de/src/emacs/highlight-symbol/
274 stars 41 forks source link

Ability to define ignore list for symbol #24

Closed c41x closed 9 years ago

c41x commented 9 years ago

I think it's nice feature to have ability to specify list of regexes to filter out symbols that should not be highlighted. For example there is no sense in selecting numbers or keywords. Just added defcustom highlight-symbol-ignore-list. Example - ignoring numbers:

(highlight-symbol-ignore-list '("\\`[0-9]+f?F?[ulUL]*\\'"))
nschum commented 9 years ago

I agree that this makes sense. Thanks.

Could please make the docstring a bit more verbose, though. :) Then I'll merge it.

dsnipe commented 9 years ago

Eh, I made an almost identical functionality (before I saw this), not regexp, but black list of symbols. This implementation is better and much more flexible for sure. It'll be great to have it in the official repo. @nschum can you merge it as is? Or maybe @c41x can finish it?

c41x commented 9 years ago

I've just updated docstring.

dsnipe commented 9 years ago

@c41x :+1:

nschum commented 9 years ago

Thanks.