【发布时间】:2010-03-16 14:20:02
【问题描述】:
我想在我的 Python 代码的文档字符串上运行拼写检查器,如果可能的话,可以在 emacs 中运行。
我找到了 ispell-check-cmets 设置,该设置可用于仅对代码中的 cmets 进行拼写检查,但我无法仅针对特定于 python 的文档字符串。
【问题讨论】:
标签: python emacs spell-checking docstring
我想在我的 Python 代码的文档字符串上运行拼写检查器,如果可能的话,可以在 emacs 中运行。
我找到了 ispell-check-cmets 设置,该设置可用于仅对代码中的 cmets 进行拼写检查,但我无法仅针对特定于 python 的文档字符串。
【问题讨论】:
标签: python emacs spell-checking docstring
我建议你试试 flyspell-mode。你可以使用类似的东西:
(add-hook 'python-mode-hook 'flyspell-prog-mode)
在您的 Emacs 配置中。
【讨论】: