From: "Pedro A. Aranda" <paaguti@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: PATCH: Add tip to integrate spellchecking with #+LANGUAGE:
Date: Tue, 30 Jul 2024 08:18:13 +0200 [thread overview]
Message-ID: <fddbb239-6dac-4559-815f-980376d17a11@gmail.com> (raw)
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
next reply other threads:[~2024-07-30 6:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-30 6:18 Pedro A. Aranda [this message]
2024-07-30 8:52 ` PATCH: Add tip to integrate spellchecking with #+LANGUAGE: Pedro Andres Aranda Gutierrez
2024-08-07 19:50 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fddbb239-6dac-4559-815f-980376d17a11@gmail.com \
--to=paaguti@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).