From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24074 Path: news.gmane.org!not-for-mail From: Johan Sandblom Newsgroups: gmane.comp.tex.context Subject: Re: GNU Emacs/ AucTeX configuration for ConTeXt Date: Fri, 2 Dec 2005 16:41:08 +0100 Message-ID: <97a06f070512020741j71842e23t@mail.gmail.com> References: <438FF991.50006@nibua-r.org> Reply-To: johan.sandblom@ki.se, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1133614594 27400 80.91.229.2 (3 Dec 2005 12:56:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2005 12:56:34 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 03 13:56:32 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EiWvH-0001hR-VK for gctc-ntg-context-518@m.gmane.org; Sat, 03 Dec 2005 13:55:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7BE7E1283D; Sat, 3 Dec 2005 13:55:27 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29674-02; Sat, 3 Dec 2005 13:55:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E2E81284F; Sat, 3 Dec 2005 13:51:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 63A2712944 for ; Fri, 2 Dec 2005 16:44:09 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15480-04 for ; Fri, 2 Dec 2005 16:44:08 +0100 (CET) Original-Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by ronja.ntg.nl (Postfix) with ESMTP id 73CB612930 for ; Fri, 2 Dec 2005 16:41:10 +0100 (CET) Original-Received: by zproxy.gmail.com with SMTP id 8so143912nzo for ; Fri, 02 Dec 2005 07:41:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BgLJA4hgO57rwIbG0gHFCFXt0cpT23naBbfvIfPt1p510KR3VNa1p7E6J5ceB+vfRRsBYRu9OdAbSxrBauELpMuBw17bNJXUSIzvzHGDx2fo9tyKQvrhI0duOrkuuj0MrWRbCf8qY5jbo80A4PwygtaiSrrCdObfjzRm9EYGc0c= Original-Received: by 10.65.191.8 with SMTP id t8mr1526547qbp; Fri, 02 Dec 2005 07:41:08 -0800 (PST) Original-Received: by 10.64.241.2 with HTTP; Fri, 2 Dec 2005 07:41:08 -0800 (PST) Original-To: mailing list for ConTeXt users In-Reply-To: <438FF991.50006@nibua-r.org> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Sat, 03 Dec 2005 13:51:05 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24074 Archived-At: 2005/12/2, Renaud AUBIN : > > Hi all, > > Is there someone using GNU Emacs with ConTeXt. After some googlelyzing, I= 've > learnt : > 1. ConTeXt mode from Berend de Boer is now included in AucTeX > 2. Some people use Emacs with ConTeXt and METAPOST, but with special .el > files that seems not really up-to-date > > I didn't found usefull information to configure properly AucTeX in order = to > work well with ConTeXt and METAPOST, even in the auctex mailing list. > It's ok for the menu (apparently managed by site) but I don't have syntax > highlighting except for comment and indenting doesn't work well. > So, my questions are: > 1. Since there is a ConTeXt mode, I suppose there is some advanced featur= es > like syntax highlighting and indentation rules. Am I right ? Yes, although the highlighting is rather sparse, mainly it seems to color anything after \ in gray, and the indentation rules somewhat finicky, requiring you to adhere to a structure it can parse. > 2. If I'm right, how to configure it ? Some of the things are available as defcustoms but most of it I think requires hacking the functions. > 3. I will use METAPOST in my .tex files, how to manage this within Emacs = ? There is a metapost.el that is distributed with GNU Emacs (but not with XEmacs, works there too though). I sometimes just change to that major mode in the middle of the file, and this should be possible to automate using mmm, but I never tried. > 4. You know advanded features I must know ? ;-) There is TeX debugging just as for LaTeX, automatically locating the error in the source and explaining it. I think possibly that the reason for the sparse syntax highlighting is the higher frequency of inline definitions in ConTeXt, making it impossible to keep up with it. I think it should be parsable, but requires emacs-lisp skills way beyond mine. > > I'm sorry but I'm addicted to Emacs and don't want to use Scite even if i= t > seems ConTeXt-friendly. I'm aware of the fact that this mail is more > Emacs/AucTeX related but since I didn't succeed in finding answers yet I > submit this issue to the ConTeXt community. > > Best regards, > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > > Regards, -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell