Hi,
@Tobias

If I add this to my .emacs I get

(setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t)
(add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin/context")

Warning (initialization): An error occurred while loading `/home/fab/.emacs':

Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin



@Michael

fab@debian:~$ which context
/home/fab/bin/context
fab@debian:~$ source context/tex/setuptex
Setting "/home/fab/context/tex" as ConTeXt root.
fab@debian:~$ which context
/home/fab/context/tex/texmf-linux-64/bin/context
fab@debian:~$


If I add this to my .emacs is always texlive 2016 is invoked when I compile

(eval-after-load "tex"
'(add-to-list 'TeX-command-list
                '("context"
                 "(/home/fab/context)/setuptex&&context"
                  TeX-run-TeX
                  nil
                  (context-mode)
                  :help "Run ConTeXt") t))



Thanks,
Fabrice


2016-10-29 12:50 GMT+02:00 Michael Eidenbenz <eidenbenz@arch.ethz.ch>:
sorry that should be:

(path to textree)/setuptex && context .....



cd (path to textree) && setuptex && context etc...


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________