[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
flyspell-prog-mode, flyspell-mode and different dictionary
From: |
Sébastien Gendre |
Subject: |
flyspell-prog-mode, flyspell-mode and different dictionary |
Date: |
Tue, 23 Jul 2024 12:45:25 +0200 |
User-agent: |
mu4e 1.12.1; emacs 29.4 |
Hello,
I use a lot flyspell-mode when I write E-mails and Org-mode documents.
And by default, its language is set to french on my system. Which is my
main language.
Recently, I discovered flyspell-prog-mode and wanted to use it in all
programming language editing. But this time, set to english.
In the manual, I didn't found a way to set the spell check language
based on the mode. And there is no flyspell-prog-mode-hook.
Did I miss something ?
Or is the only solution is to attach a lambda function, to prog-mode-hook,
that will call flyspell-prog-mode and ispell-change-dictionary like
this:
(add-hook 'prog-mode-hook
'(lambda ()
(flyspell-prog-mode t)
(ispell-change-dictionary "english")))
Best regards
-------
Gendre Sébastien
signature.asc
Description: PGP signature
- flyspell-prog-mode, flyspell-mode and different dictionary,
Sébastien Gendre <=
Re: flyspell-prog-mode, flyspell-mode and different dictionary, Stefan Monnier, 2024/07/23