python - 如何用 emacs 拼写检查 python 文档字符串?

标签 python emacs spell-checking docstring

如果可能的话,我想在我的 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/

相关文章:

java - 如何在 SWT 应用程序中进行拼写检查

django - django-haystack 和 Solr 的拼写建议

python - 为 python 包导入混淆

python - 如何确定 Google colab 中的文件路径?

python - 在 Python 中优化 if 树

python - BeautifulSoup 和

Emacs 设置 which-function-mode

scala - 运行 ensime-source-buffer-loaded-hook 时出错 - 使用 ENSIME 和 Emacs 的 OSX

emacs - "Invalid read syntax: )"

c# - SpellCheck .Net 类是否支持俄语?