Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Emacs 中,当 flyspell-prog-mode 处于活动状态时,Flyspell 也会检查 C/C++ 标头名称。所以拼写检查器会抱怨 stdlib.h、stdio.h,但可以使用 string.h 之类的东西。
有谁知道如何解决这种烦人的 Flyspell 行为?
该行为在较新版本的 Emacs 中似乎已修复(使用 24.4 和 25.3 测试)。
旧的回应,混淆了两种飞符模式:
也许使用flyspell-prog-mode而不是flyspell-mode?但是,这将 flyspell 限制为字符串和注释,因此它不会更正拼写错误的变量或函数名称。
flyspell-prog-mode
flyspell-mode