emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: PATCH: Add tip to integrate spellchecking with #+LANGUAGE:
Date: Tue, 30 Jul 2024 10:52:32 +0200	[thread overview]
Message-ID: <CAO48Bk8GSSSbWrhkyE6xcBYeRLcQv6Uww1DysZ-D6Fv0FYdJoA@mail.gmail.com> (raw)
In-Reply-To: <fddbb239-6dac-4559-815f-980376d17a11@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]

Hi,

put his on hold FTMB, please. I don't yet understand why I get 'en'
regardless the language I state in org 9.7.x

However, "evaluating" #+LANGUAGE: at startup may be a nice feature for the
future, in the sense of reducing the amount of lines to setup Emacs for a
specific document.

Best, /PA

On Tue, 30 Jul 2024 at 08:18, Pedro A. Aranda <paaguti@gmail.com> wrote:

>
>   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
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 3093 bytes --]

  reply	other threads:[~2024-07-30  8:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=CAO48Bk8GSSSbWrhkyE6xcBYeRLcQv6Uww1DysZ-D6Fv0FYdJoA@mail.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).