[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] orgmode and auctex
From: |
Nick Dokos |
Subject: |
Re: [O] orgmode and auctex |
Date: |
Fri, 24 Feb 2012 00:34:37 -0500 |
Christopher Witte <address@hidden> 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
- [O] orgmode and auctex, Christopher Witte, 2012/02/07
- Re: [O] orgmode and auctex, Nick Dokos, 2012/02/07
- Re: [O] orgmode and auctex, Christopher Witte, 2012/02/09
- Re: [O] orgmode and auctex, Carsten Dominik, 2012/02/11
- Re: [O] orgmode and auctex, Nick Dokos, 2012/02/11
- Re: [O] orgmode and auctex, Christopher Witte, 2012/02/20
- Re: [O] orgmode and auctex,
Nick Dokos <=
- Re: [O] orgmode and auctex, Christopher Witte, 2012/02/24