I put the following in the beginning of the Org file:

* :noexport:
Local Variables:
ispell-local-dictionary: "american"

And I start flyspell via a hook:

(add-hook 'org-mode-hook 'turn-on-flyspell)

But Ispell always uses the default dictionary instead of the american.

I also tried Org's language tag, but it does not seem to have any effect on Flyspell.


How to define the Ispell language in the Org file?


When I set the variable from within a :noexport: taged heading the variable will not be set:

* :noexport:
-*- ispell-local-dictionary: "american" -*-

But when I set the variable before the :noexport: tag the variable gets set:

-*- ispell-local-dictionary: "american" -*-
* :noexport:

Is this the intended behavior? And if so, how can I change it?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.