From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jean Magnan de Bornier Newsgroups: gmane.emacs.help Subject: Customize reftex according to auctex mode Date: Sun, 30 Nov 2008 11:15:36 +0100 Organization: Guest of ProXad - France Message-ID: <874p1peczb.fsf@bornier.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228049319 20759 80.91.229.12 (30 Nov 2008 12:48:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2008 12:48:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 30 13:49:44 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6lk6-0006iQ-5o for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 13:49:42 +0100 Original-Received: from localhost ([127.0.0.1]:50611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6liv-0004E9-Qk for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 07:48:29 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news.ecp.fr!news.in2p3.fr!in2p3.fr!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp18-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:QhIVhaFaC/J7WjiDiO/2wWyOlYg= Original-Lines: 27 Original-NNTP-Posting-Date: 30 Nov 2008 11:15:34 MET Original-NNTP-Posting-Host: 81.56.145.104 Original-X-Trace: 1228040134 news-3.free.fr 5886 81.56.145.104:40131 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:164923 X-Mailman-Approved-At: Sun, 30 Nov 2008 07:48:08 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60251 Archived-At: Hi all, I have been trying to customize reftex-cite-format to be "\cite{%l}" when using LaTeX, and "\cite[%l]" when using ConTeXt. My first attempt was simply the last line here: (add-hook 'ConTeXt-mode-hook (function (lambda () (reftex-mode t) (auto-fill-mode 1) (LaTeX-math-mode 1) )) (setq reftex-cite-format "\\cite[%l]")) But this command once given is also applied to latex files; I then tried writing the corresponding instruction in (add-hook 'LaTeX-mode-hook... but then auctex has reverted to the latex behavior even for context files. So apparently I cannot customize reftex within aa auctex mode? Or am I just clumsy? AUCTeX 11.85 TIA, -- Jean