all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Customize reftex according to auctex mode
@ 2008-11-30 10:15 Jean Magnan de Bornier
  2008-11-30 15:12 ` Kevin Rodgers
       [not found] ` <mailman.1549.1228057943.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Jean Magnan de Bornier @ 2008-11-30 10:15 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-30 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-30 10:15 Customize reftex according to auctex mode Jean Magnan de Bornier
2008-11-30 15:12 ` Kevin Rodgers
     [not found] ` <mailman.1549.1228057943.26697.help-gnu-emacs@gnu.org>
2008-11-30 15:48   ` Jean Magnan de Bornier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.