Eli Zaretskii writes: >> From: Stefan Kangas >> Date: Wed, 6 Sep 2023 11:51:14 -0700 >> Cc: jporterbugs@gmail.com, michael_heerdegen@web.de, 62677@debbugs.gnu.org >> >> Here's the plan I'd propose: Add a new defvar-local >> `flyspell-use-prog-mode' or somesuch that major modes can set. Now, >> when a user enables `flymake-mode' in a buffer where that variable is >> non-nil, the extra stuff done in `flyspell-prog-mode' gets done too. >> Then decide which built-in major modes that would benefit, and set that >> variable in them. > > SGTM. > >> Would `prog-mode' be a candidate though, or do we expect any modes >> inheriting from it to want the regular `flyspell-mode'? > > The former, I guess? Thanks. How does the attached patch look?