Ok, your problem is more auctex than ConTeXt. So, try this:

(1) Add to .emacs:

;; SERVER Download (MELPA):
(when (>= emacs-major-version 24)
  (require 'package)
  (add-to-list
   'package-archives
   '("melpa" . "http://melpa.org/packages/";)
   t)
  (package-initialize))

to get connection to MELPA server. 

(2) Save .emacs and start Emacs again
(3) Open OPTIONS—MANAGE EMACS PACKAGES
(4) Install current auctex version
(5) Restart Emacs
(6) Get into context-mode (M-x context-mode)
(7) Type M-x customize-variable RET ConTeXt-Mark-version RET

+++
If Emacs responds: Wrong type argument: symbolp, „string“ (that’s the bug) open 
context.el (somewhere in .emacs.d/(m)elpa/auctex-11.89.X) and replace line 501 
(or nearby)

:type "string"

with

    :type 'string

and recompile the file with `M-x byte-compile file RET RET’.
+++

(8) Switch from Mark II to Mark IV

Now, Emacs should generally provide support to ConTeXt Mark IV. To compile 
tex-files comfortable right out of Emacs via C-c C-c add:

(9) (setenv "PATH" "/home/fab/tex/texmf-linux-64/bin/:$PATH" t) to your .emacs 
and
(10) (setq ConTeXt-Mark-version "IV“) if you want
(11) Save file and restart Emacs
(12) Open a context file and try out


ALOHA, tobber







> Am 30.10.2016 um 13:30 schrieb Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
> 
> Hi Tobias,
> 
> (2) Possible completions are:
> ConTeXt-close-environment     ConTeXt-close-xml-tag
> ConTeXt-environment     ConTeXt-etexshow
> ConTeXt-find-matching-start     ConTeXt-find-matching-stop
> ConTeXt-insert-item     ConTeXt-mark-environment
> ConTeXt-mode     ConTeXt-mode-command-menu
> ConTeXt-mode-menu     ConTeXt-section
> ConTeXt-work-on-environment
> 
> I added in .emacs 
> 
> (custom-set-variables 
>  '(ConTeXt-Mark-version "IV"))
> 
> update auctex
>  
> How ? Auctex installed with ELPA
> 
> (setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t)
> 
>  I do not understand this symbol „ and how to access
> 
> Thanks
> Fabrice
> 
> 
> 2016-10-30 12:15 GMT+01:00 Tobias Berndt <tobiasber...@arcor.de>:
> @ Fabrice: If you’re working under a Linux, use „home“ instead of „Users“ 
> (I’m under macOS, therefore I left „Users“) and forget about the add-to-list 
> line. So:
> 
> (1) M-x context-mode
> (2) M-x ConTeXt-Mark-version (switch to mkIV)
> 
> If there is no such command: update auctex; if this gives an error (there 
> was/is a bug:) tell me and I’ll give you an instruction how to manipulate 
> your context.el
> 
> (3) Add to .emacs: (setenv „PATH“ „/home/fab/tex/texmf-linux-64/bin/:$PATH“ t)
> (4) ;; (add-to-list 'load-path 
> "/home/fab/context/tex/texmf-linux-64/bin/context“)
> (5) Restart Emacs
> 
> C-c C-c should work, now.
> 
> 
> ALOHA, tobber
> 
> 
> 
> 
> 
> 
> > Am 29.10.2016 um 23:41 schrieb Fabrice Couvreur 
> > <fabrice1.couvr...@gmail.com>:
> >
> > 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 <eidenb...@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
> > ___________________________________________________________________________________
> >
> > ___________________________________________________________________________________
> > 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
> > ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

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

Reply via email to