my .emacs looks like this:;; Open in ConTeXt mode(add-hook 'LaTeX-mode-hook 'TeX-PDF-mode) ;; AucTeX turn on PDF mode by default(add-hook 'LaTeX-mode-hook (function turn-on-reftex)) ;; Turn on RefTeX when AucTeX loads(add-hook 'ConTeXt-mode-hook 'yas/minor-mode-on) ;; Turn on YaSnippet minor mode in ConTeXt-en-mode(add-hook 'ConTeXt-mode-hook (function turn-on-reftex)) ;; Turn on RefTeX when AucTeX loads(setq TeX-default-mode 'context-mode) ;; Make context-mode the default tex-mode(setq reftex-plug-into-AUCTeX t) ;; Turn on RefTeX when AucTeX loads(add-hook 'TeX-mode-hook '(lambda () (TeX-fold-mode 1)));; Add option for MKIV and make it the default for C-c C-c(add-hook 'ConTeXt-mode-hook (lambda()(add-to-list 'TeX-command-list '("ConTeXt MKIV" "context %t" TeX-run-TeX nil (context-mode) ))(setq TeX-command-default "ConTeXt MKIV")(setq TeX-save-query nil )))
On Fri, Jan 10, 2014 at 1:37 PM, Peter Münster <pmlists@free.fr> wrote:
On Fri, Jan 10 2014, Fabrice Couvreur wrote:%%% Mode: context
> %%% Local Variables:
> %%% Mode: LaTeX
> %%% LaTeX-command "LuaLaTeX-shell-escape"
> %%% End:
%%% Local Variables:
%%% End:
For using "context" instead of "texexec", put this in your init-file:
(eval-after-load 'tex
'(add-to-list
'TeX-command-list
'("ConTeXt" "context --nonstopmode %t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt")))
If you prefer to use context-mode by default for every file with ".tex" as
suffix, then you can add this to your init-file:
(add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode))
Then you won't need the "Local Variables" section at the end of each
ConTeXt-file.
--
Peter
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________