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?

asked Aug 17, 2014 at 17:10

1 Answer 1

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. (削除ここまで)

answered May 21, 2018 at 15:56
Sign up to request clarification or add additional context in comments.

2 Comments

At the time I asked this question, flyspell-prog-mode behave like I described in the original post (I explicitly mentioned flyspell-prog-mode).
You're right, it seems I misread that. It should be fixed with newer versions of flyspell, however.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.