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

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

Re: flyspell-prog-mode, flyspell-mode and different dictionary


From: Sébastien Gendre
Subject: Re: flyspell-prog-mode, flyspell-mode and different dictionary
Date: Wed, 24 Jul 2024 15:42:48 +0200
User-agent: mu4e 1.12.1; emacs 29.4

Ok. Thank you very much. :)


Michael Heerdegen via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> writes:

> Joel Reicher <joel.reicher@gmail.com> writes:
>
>> Sébastien Gendre <seb@k-7.ch> writes:
>>
>> > I checked for variable `flyspell-prog-mode-hook` with
>> > `describe-variable`, with no success.
>>
>> Undefined variables won't show up there, which is why I asked if you
>> checked the definition of the flyspell-prog-mode *function*.
>>
>> If you setq an undefined variable, it will define it, and if your
>> version of the mode references this (previously undefined) variable,
>> it will work as you expect.
>
> With other words: You can (add-hook 'flyspell-prog-mode-hook ...) even
> when flyspell-prog-mode-hook is void, without error.  And enabling
> `flyspell-prog-mode' _will_ look at and use the binding.
>
>
> Michael.

Attachment: signature.asc
Description: PGP signature


reply via email to

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