如果可能的话,我想在emacs中对python代码的docstring运行一个拼写检查程序。
我找到了i spell check comments设置,它可以用于拼写代码中的仅检查注释,但是我不能只针对docstring,docstring是一个相当特定于python的东西。
我建议你试试飞行拼写模式。你可以用这样的方法:
(添加hook'python mode hook'flyspell prog mode)
在您的emacs配置中。