help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Automatic flyspell


From: Emanuel Berg
Subject: Re: Automatic flyspell
Date: Mon, 23 Feb 2015 20:19:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Robert Thorpe <rt@robertthorpeconsulting.com> writes:

> The best solution is to use hooks as Emanuel
> suggested: (add-hook 'text-mode-hook
> 'turn-on-flyspell-prog) (add-hook 'prog-mode-hook
> 'flyspell-prog-mode)

Leaving aside the issue "should programming be
spelled?" there is also the natural way to do this on
a mode basis. Those hooks should be present already
for the popular modes and if they ain't they should be
sooner rather than later anyway so might just put them
there already. Just fill them in as you go. It is much
easier to have success with that than to predict the
future and try to put something to work that will work
everywhere and forever ever since. Even if one
programs in some 20 modes which is remote that's only
some 20-40 lines to do this that look virtually the
same. (Compare, this paragraph is thirteen lines, and
they don't even look the same...)

-- 
underground experts united


reply via email to

[Prev in Thread] Current Thread [Next in Thread]