-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Georg Brandl wrote:
> Am 19.12.2009 07:57, schrieb Lennart Regebro:
>> Hi all!
>>
>> It would be nice to have a ReST/Sphinx filter for aspell. I have no
>> clue how to make such a thing, and do not exactly feel like learning
>> it at the moment. :) Maybe somebody else have done it already?
> 
> Myself, I've not heard of one; but I'd be interested as well.

If you are an emacs user then it does have a way of doing spell checking in
text modes (and strings+comments of programming modes).  You then get red
underlining of unknown words, middle mouse buttons for suggestions plus
saving etc.  It has saved me enough times writing rst documentation, not to
mention ordinary code :-)

Add this to your .emacs:

   (add-hook 'text-mode-hook 'turn-on-flyspell)

If you want it for almost everything:

(add-hook 'message-mode-hook 'turn-on-flyspell)
(add-hook 'wiki-mode 'turn-on-flyspell)
(add-hook 'text-mode-hook 'turn-on-flyspell)
(add-hook 'python-mode-hook 'flyspell-prog-mode)
(add-hook 'c-mode-common-hook 'flyspell-prog-mode)
(add-hook 'c++-mode-common-hook 'flyspell-prog-mode)
(add-hook 'emacs-lisp-mode-hook 'flyspell-prog-mode)
(add-hook 'c++-mode-hook 'turn-on-flyspell-prog-mode)

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAks+0toACgkQmOOfHg372QSWGQCbBrk9+UpggIsurYr3thIbjC+K
FcQAn0joLLM1jlrrbM/ODYvfo9qeoZo8
=ToL+
-----END PGP SIGNATURE-----

--

You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.


Reply via email to