I speling good

posted on September 04, 2006

I'm so glad I volunteered to do a presentation on Emacs as part of the next ATLRUG meeting's discussion of IDEs for Ruby. Making sure I'm able to talk about the awesomeness of Emacs has forced me to re-examine some features I don't use very often, and has led me to a few I didn't know existed. Like this one1:

,----[ C-h f flyspell-prog-mode RET ]
| flyspell-prog-mode is an interactive compiled Lisp function in `flyspell.el'.
| (flyspell-prog-mode)
|
| Turn on `flyspell-mode' for comments and strings.
`----

I've been wanting this for years... And the implementation isn't even particularly difficult — it just checks whether or not the face of the word it's examining is in a user-modifiable alist of font-lock faces. The alist defaults to the comment and string faces, but by adding nxml-text-face you get automatic spell checking in XML documents too.

1 Text generated with M-x boxquote-describe-function.

Commentary most sage