Is there a way to add a list of "accepted" words for each underlying prog-mode.
By "accepted" I mean - I don't want them added to my dictionary - I just don't want them highlighted.
By prog-mode I mean (for example) that for flyspell-prog-mode in c-mode I'd like a list of words I'm likely to use in comments - jargon/slang - that I wouldn't want accepted as correct in say a markdown file.
I'd be happy for an answer requiring writing a mode-hook, but thought there might be an alist somewhere.
Example:
Words like alloc, malloc, unref are perfectly reasonable in C comments, but might not be in other modes - and especially not in regular text documents. I don't want them added to my real dictionary.