[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flyspell-prog-mode, flyspell-mode and different dictionary
From: |
Michael Heerdegen |
Subject: |
Re: flyspell-prog-mode, flyspell-mode and different dictionary |
Date: |
Wed, 24 Jul 2024 14:56:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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.
Re: flyspell-prog-mode, flyspell-mode and different dictionary, Stefan Monnier, 2024/07/23