From: Christopher Witte <chris@witte.net.au>
To: nicholas.dokos@hp.com
Cc: Org Mode <emacs-orgmode@gnu.org>,
Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: orgmode and auctex
Date: Fri, 24 Feb 2012 09:57:44 +0100 [thread overview]
Message-ID: <CAALnB3Gtg2bKFU_hKNvBRos3F0uafO7GN0XOLXVkqkukcdajHg@mail.gmail.com> (raw)
In-Reply-To: <6358.1330061677@alphaville>
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
It's been working for me so far so I think I'll stick with it.
Thanks for all your help.
Chris.
On 24 February 2012 06:34, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Christopher Witte <chris@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
>
[-- Attachment #2: Type: text/html, Size: 1804 bytes --]
prev parent reply other threads:[~2012-02-24 8:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 17:55 orgmode and auctex Christopher Witte
2012-02-07 18:15 ` Nick Dokos
2012-02-09 16:42 ` Christopher Witte
2012-02-09 19:59 ` Thomas Alexander Gerds
2012-02-09 20:08 ` Nick Dokos
2012-02-11 17:21 ` Christopher Witte
2012-02-11 17:33 ` Nick Dokos
2012-02-11 17:40 ` Carsten Dominik
2012-02-11 18:11 ` Nick Dokos
2012-02-20 12:57 ` Christopher Witte
2012-02-24 5:34 ` Nick Dokos
2012-02-24 8:57 ` Christopher Witte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAALnB3Gtg2bKFU_hKNvBRos3F0uafO7GN0XOLXVkqkukcdajHg@mail.gmail.com \
--to=chris@witte.net.au \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.