In Emacs, I prefer use pure ConTeXt.
I have attached my Emacs init file. This setup is so satisfying.
You can compile your documents with just C-c c and view them with C-c v.
Also, you don't need to close the PDF after every compile (Evince will restart the contents after compilation).
In GNOME, you can simply switch between windows using Alt+Tab.
I hope this is helpful!

On Mon, Jun 17, 2024 at 1:36 PM Henning Hraban Ramm <texml@fiee.net> wrote:
Am 17.06.24 um 14:15 schrieb Jürgen Hanneder via ntg-context:
>
> Apologies for this question, which is probably an auctex problem. I have
> a new install of everything
> (LinuX, emacs, texlive) and the latest (?) context (ConTeXt ver:
> 2024.05.27 18:16 LMTX)

Latest ist today’s, but that’s not the problem.

> installed in
> a separate directory.
>
> Running context from the commandline works fine, so I guess I did not
> misspell the path,
> but when running "Context All" from emacs, the error is:
>
> -----
> Running `ConTeXt' on `context-test' with ``context --once  --nonstop
> context-test.tex''
> /bin/sh: Zeile 1: context: Kommando nicht gefunden.
>
> TeX Output exited abnormally with code 127 at Mon Jun 17 14:03:03
> ------

Apparently, your Emacs doesn’t use the same PATH as your terminal.

The error message is from /bin/sh, I guess you usually run bash, zsh or
the like, and that gets its PATH from .bashrc or something like that.

Check how Emacs calls that script, and if you can define a PATH.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________