13

I'd like to run a spell checker on the docstrings of my Python code, if possible from within emacs.

I've found the ispell-check-comments setting which can be used to spell check only comments in code, but I was not able to target only the docstrings which are a fairly python-specific thing.

gurney alex
  • 13,247
  • 4
  • 43
  • 57

1 Answers1

20

I recommend you to try flyspell-mode. You could use something like:

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

in your Emacs configuration.

buhtz
  • 10,774
  • 18
  • 76
  • 149
Bozhidar Batsov
  • 55,802
  • 13
  • 100
  • 117