emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* PATCH: Add tip to integrate spellchecking with #+LANGUAGE:
@ 2024-07-30  6:18 Pedro A. Aranda
  2024-07-30  8:52 ` Pedro Andres Aranda Gutierrez
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro A. Aranda @ 2024-07-30  6:18 UTC (permalink / raw)
  To: Org Mode List


  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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-07 20:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-30  6:18 PATCH: Add tip to integrate spellchecking with #+LANGUAGE: Pedro A. Aranda
2024-07-30  8:52 ` Pedro Andres Aranda Gutierrez
2024-08-07 19:50   ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).