使用emacs对C++代码中的注释进行拼写检查

Tho*_* W. 16 c++ emacs spell-checking

有没有办法使用emacs对C++代码中的注释进行拼写检查?

mir*_*irk 10

下面的.emacs中的lisp-snippet让它在Ubuntu Linux上为我工作

(add-hook 'c-mode-common-hook 'flyspell-prog-mode)
Run Code Online (Sandbox Code Playgroud)

存在替代设置.但我认为你可以通过google搜索flyspell-prog-mode找到它们.


sli*_*cki 7

拼写检查文件中已有的评论:

M-x ispell-comments-and-strings
Run Code Online (Sandbox Code Playgroud)

在键入时拼写检查注释:

M-x flyspell-prog-mode
Run Code Online (Sandbox Code Playgroud)

.emacskindahero建议的钩子.