Re: [PATCH] 2.6.16.18 - spelling fix

From: Neil Brown
Date: Mon May 29 2006 - 04:26:25 EST


On Monday May 29, nikita@xxxxxxxxxxxxx wrote:
> Neil Brown writes:
> > On Saturday May 27, jpiszcz@xxxxxxxxxxxxxxx wrote:
> > > I was experimenting with Linux SW raid today and found a spelling error
> > > when reading the help menus...
> > >
> > > Patch attached, not sure if this is the right place to send it or if
> > > patches go to Andrew Morton (misc ones like this)...
> >
> > Thanks....
> > but more helpful than a spelling fix would be a chunk of elisp that I
> > could stick in my .emacs, which would automatically turn on flyspell
> > mode in Kconfig files, and inside comments in .c and .h files.
>
> (defun linux-c-mode ()
> ...
> (flyspell-prog-mode)
> ...)
>

Seems easy enough.... doesn't work for me :-(

Further exploration shows that I need font-lock mode enabled for it to
highlight speeling errors for me, and I never could get used to seeing
my C code look like a Disco.

It seems that flyspell-prog-mode absolutely requires font-lock as it
uses the font-lock tags to detect which text to spell check.

So I guess I need to tell font-lock that all the different text types
should be displayed in the same font.

Why is it never easy?

Thanks.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/