doc/org-manual.org: Add tip to integrate spellchecking with #+LANGUAGE:
* doc/org-manual.org: Show how to watch ~org-export-default-language~ in
your ELISP code to automatically adjust your spell-checker.
---
doc/org-manual.org | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/doc/org-manual.org b/doc/org-manual.org
index 6cf51ebca..020fd061f 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -14075,6 +14075,18 @@ general options (see [[*Export Settings]]).
'("AUTO" "polyglossia" t ("xelatex" "lualatex")))
#+end_src
+ *TIP*: you can watch this variable in your ELISP code to interface
+ with your spellchecker:
+
+ #+begin_src emacs-lisp
+ (defun org-export-default-language-watcher (_ newval _ _)
+ ;; newval will hold the value defined in #+LANGUAGE:
+ )
+
+ (add-variable-watcher 'org-export-default-language
+ #'org-export-default-language-watcher))
+ #+end_src
+
- =LATEX_CLASS= ::
#+cindex: @samp{LATEX_CLASS}, keyword
--
2.34.1