From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: orgmode and auctex Date: Tue, 7 Feb 2012 18:55:23 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1c088b3dc0a04b8637bdc Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RupGO-0000El-Ck for emacs-orgmode@gnu.org; Tue, 07 Feb 2012 12:55:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RupGH-0000du-Jx for emacs-orgmode@gnu.org; Tue, 07 Feb 2012 12:55:32 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:52112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RupGH-0000dY-FA for emacs-orgmode@gnu.org; Tue, 07 Feb 2012 12:55:25 -0500 Received: by dadv6 with SMTP id v6so6635838dad.0 for ; Tue, 07 Feb 2012 09:55:23 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --e89a8ff1c088b3dc0a04b8637bdc Content-Type: text/plain; charset=ISO-8859-1 I've had a small problem with orgmode and auctex. Follwing the auctex quickstart I added the following to my .emacs (setq-default TeX-master nil) and then from the orgmode FAQ to setup reftex in orgmode I added the following (defun org-mode-reftex-setup () (load-library "reftex") (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all)) (define-key org-mode-map (kbd "C-c )") 'reftex-citation)) (add-hook 'org-mode-hook 'org-mode-reftex-setup) With both of these, whenever I opened an org file I was asked to name the master file. If I comment out the setq-default I don't get the behaviour I would like with mulitfile tex files. My solution was to change (setq-default TeX-master nil) to (add-hook 'TeX-mode-hook (lambda () (setq-default TeX-master nil))) I then appear to get the behaviour I desire. Is this a good way to do this? If so I might add it to the FAQ. Cheers Chris. --e89a8ff1c088b3dc0a04b8637bdc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've had a small problem with orgmode and auctex.=A0 Follwing the aucte= x quickstart I added the following to my .emacs

(setq-default TeX-ma= ster nil)

and then from the orgmode FAQ to setup reftex in orgmode I= added the following

(defun org-mode-reftex-setup ()
=A0 (load-library "reftex"= )
=A0 (and (buffer-file-name)
=A0=A0=A0=A0=A0=A0 (file-exists-p (buff= er-file-name))
=A0=A0=A0=A0=A0=A0 (reftex-parse-all))
=A0 (define-key= org-mode-map (kbd "C-c )") 'reftex-citation))
(add-hook 'org-mode-hook 'org-mode-reftex-setup)

With both o= f these, whenever I opened an org file I was asked to name the master file.= =A0 If I comment out the setq-default I don't get the behaviour I would= like with mulitfile tex files.=A0 My solution was to change

(setq-default TeX-master nil)

to

(add-hook 'TeX-mode-= hook (lambda ()
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0 (setq-default TeX-m= aster nil)))

I then appear to get the behaviour I desire.=A0 Is this= a good way to do this?=A0 If so I might add it to the FAQ.

Cheers
Chris.
--e89a8ff1c088b3dc0a04b8637bdc--