5

In Emacs when flyspell-prog-mode is active, C/C++ header names are also checked by Flyspell. So the spell checker complains of stdlib.h, stdio.h, but is ok with something like string.h.

Does anyone know how to fix this annoying Flyspell behavior?

avli
  • 1,121
  • 1
  • 10
  • 17

1 Answers1

0

The behaviour seems fixed in newer versions of Emacs (tested with 24.4 and 25.3).

Old response, confused the two flyspell modes:

Perhaps use flyspell-prog-mode instead of flyspell-mode? This restricts flyspell to strings and comments, however, so it will not correct misspelled variable or function names.

Lord Yuuma
  • 166
  • 4
  • At the time I asked this question, flyspell-prog-mode behave like I described in the original post (I explicitly mentioned flyspell-prog-mode). – avli May 22 '18 at 20:08
  • You're right, it seems I misread that. It should be fixed with newer versions of flyspell, however. – Lord Yuuma May 23 '18 at 20:29