auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Re: Too many questions


From: Richard Lewis
Subject: [AUCTeX] Re: Too many questions
Date: Tue, 31 May 2005 16:09:30 +0100
User-agent: Gnus Emacs (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * Anakreon (2005-05-31) writes:
>
>> Auctex makes too many qustions and I wonder how could
>> reduce them. For example when I want to generate the dvi
>> it asks if should save the file
>
> Customize `TeX-save-query'.  Explained in the manual under
> (info "(auctex)Multifile").
>
>> and then if the command is
>> latex.
>
> There's currently no way around that I am aware of.  You could
> probably use rubber (<URL:http://rubber.sf.net/>) or latexmk to
> minimise the amount of such questions.

If you put the following in .emacs then C-f5 will run save the file
and run LaTeX.

(defun rl-save-and-LaTeX ()
        "Save and LaTeX `TeX-master-file' (without querying the user).

Any files \\input by `TeX-master-file' are also saved without prompting."
        (interactive)
        (let (TeX-save-query)                                                   
                   ;the following will save without prompting
                (TeX-save-document (TeX-master-file))) ;save master document 
and its files
  (TeX-command "LaTeX" 'TeX-master-file))  ;LaTeX master doument

(add-hook 'LaTeX-mode-hook (lambda ()
                                                                                
                                 (define-key
                                                                                
                                         LaTeX-mode-map (kbd "<C-f5>") 
'rl-save-and-LaTeX)))





reply via email to

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