Christopher Witte <ch...@witte.net.au> wrote: > Hi all, > > (setq TeX-auto-save t) > (setq TeX-parse-self t) > (setq-default TeX-master nil) > (make-variable-buffer-local 'TeX-master) ;; I think this is need because the > variable is not buffer > local until Auctex is active > > (defun org-mode-reftex-setup () > (setq TeX-master t) > (load-library "reftex") > (and (buffer-file-name) > (file-exists-p (buffer-file-name)) > (progn > (reftex-parse-all) > (reftex-set-cite-format "[[cite:%l][%l]]"))) > (define-key org-mode-map (kbd "C-c )") 'reftex-citation) > (define-key org-mode-map (kbd "C-c (") 'org-mode-reftex-search)) > (add-hook 'org-mode-hook 'org-mode-reftex-setup) > > This appears to work for me. This should make the buffer local version of > TeX-master "t" for all > org buffer and keep it the default otherwise. Is this a good way to work > around this problem? >
I think so - at least, I can't think of a better way. Nick