From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ConTeXt with Emacs
Date: Fri, 10 Jan 2014 23:47:26 +0100 [thread overview]
Message-ID: <CACyK-erx4UDAys3PErR2c9A=YSn6i+3FRQK8oXxPd_5d3e2SvA@mail.gmail.com> (raw)
In-Reply-To: <CABkompLKVrffpieGzwEnXEn8eWQiJZnC+G1=Jc6d3Z4tEC=ArA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3189 bytes --]
Thank you all,
C-c C-c displayed 'Command : (default ConTeXt)' then RET, and the file is
compiled.
Only a second C-c C-c does not allow me to have 'Command : (default View)'.
How ?
2014/1/10 Mica Semrick <paperdigits@gmail.com>
> 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:
>>
>> > %%% Local Variables:
>> > %%% Mode: LaTeX
>> > %%% LaTeX-command "LuaLaTeX-shell-escape"
>> > %%% End:
>>
>> %%% Local Variables:
>> %%% Mode: context
>> %%% 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 5823 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-01-10 22:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 18:52 Fabrice Couvreur
2014-01-10 19:04 ` Hans Hagen
2014-01-10 19:50 ` Bill Meahan
2014-01-10 19:57 ` Bill Meahan
2014-01-10 20:08 ` Willi Egger
2014-01-10 20:40 ` Fabrice Couvreur
2014-01-10 22:52 ` Hans Hagen
2014-01-10 21:37 ` Peter Münster
2014-01-10 22:08 ` Mica Semrick
2014-01-10 22:47 ` Fabrice Couvreur [this message]
2014-01-10 22:58 ` Peter Münster
2014-01-10 23:16 ` Fabrice Couvreur
2014-01-10 23:36 ` Fabrice Couvreur
2014-01-11 0:04 ` Peter Münster
-- strict thread matches above, loose matches on Subject: below --
2014-01-10 18:34 Fabrice
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACyK-erx4UDAys3PErR2c9A=YSn6i+3FRQK8oXxPd_5d3e2SvA@mail.gmail.com' \
--to=fabrice1.couvreur@gmail.com \
--cc=ntg-context@ntg.nl \
/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.
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 NNTP newsgroup(s).