如果可能的话,我想在我的 Python 代码的文档字符串上运行一个拼写检查器。
我找到了 ispell-check-comments 设置,它可用于仅对代码中的注释进行拼写检查,但我无法仅针对 python 特定的文档字符串。
最佳答案
我建议您尝试 flyspell-mode。你可以使用类似的东西:
(add-hook 'python-mode-hook 'flyspell-prog-mode)
在您的 Emacs 配置中。
关于python - 如何用 emacs 拼写检查 python 文档字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2455062/