如何使用emacs拼写检查python docstring?

gur*_*lex 10 python emacs spell-checking docstring

我想在我的Python代码的文档字符串上运行拼写检查,如果可能的话,从emacs中.

我找到了ispell-check-comments设置,可用于拼写仅检查代码中的注释,但我无法仅针对特定python特定事物的文档字符串.

Boz*_*sov 18

我建议你试试flyspell-mode.你可以使用类似的东西:

(add-hook'python-mode-hook'flyspell-prog-mode)

在您的Emacs配置中.

  • 他打败了我:http://twitter.com/travisbhartwell/status/10574255696 http://twitter.com/travisbhartwell/status/10574197270 (2认同)