auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Customize TeX-command-list via .emacs?


From: David Kastrup
Subject: Re: [AUCTeX] Customize TeX-command-list via .emacs?
Date: Fri, 09 Mar 2007 23:08:58 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

Alan Ristow <address@hidden> writes:

> Hi all,
>
> I want to change the command line that is executed when I run BibTeX
> via AUCTeX. I prefer to issue a simple command in my .emacs file and
> leave the rest of the commands in TeX-command-list alone, but I can't
> figure out how to do it. The closest I've come is this:
>
> (eval-after-load "tex"
>   '(setq TeX-command-list
>        (append TeX-command-list
>                (list
>                 (list "BibTeX" "bibtex --min-crossrefs=100 %s"
>                       'TeX-run-command nil t :help "Run BibTeX with 
> min-crossrefs=100")
>
> Obviously, this simply tacks a second command called BibTeX onto the
> end of TeX-command-list, which is not what I want -- I want to replace
> the existing command. Is there any way I can do this short of
> explicitly writing out the entire TeX-command-list in my .emacs file
> (as customize-variable will do)?

... (setcdr (assoc "BibTeX" TeX-command-list)
            '("bibtex --min-crossrefs=100 %s"
            'TeX-run-command nil t :help "Run BibTeXt with ..."))

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]