Re: [PATCH] 2.6.16.18 - spelling fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday May 29, [email protected] wrote:
> Neil Brown writes:
>  > On Saturday May 27, [email protected] 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux