Is there a way to prevent automatic expansion of an abbreviation in the built-in `abbrev-mode` after certain symbols? E.g. I want my abbrev to expand after whitespace, newline, comma etc., but **not** after a dash or underscore.

I know I can hit `C-q` before typing the (say) underscore, but an automatic solution would be much nicer since this occurs for me very often.

There are some abbrev hooks in the manual, but since I am a total beginner with Elisp I don't see an obvious solution...

Thank you very much!