【问题标题】:How to spell check python docstring with emacs?如何用emacs拼写检查python文档字符串?
【发布时间】:2010-03-16 14:20:02
【问题描述】:

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

我找到了 ispell-check-cmets 设置,该设置可用于仅对代码中的 cmets 进行拼写检查,但我无法仅针对特定于 python 的文档字符串。

【问题讨论】:

    标签: python emacs spell-checking docstring


    【解决方案1】:

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

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

    在您的 Emacs 配置中。

    【讨论】:

    猜你喜欢
    • 2015-01-25
    • 2019-05-08
    • 1970-01-01
    • 1970-01-01
    • 2016-01-22
    • 2011-07-05
    • 2013-08-19
    • 2013-12-26
    • 2015-07-10
    相关资源
    最近更新 更多