[Top][All Lists]

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

Re: [h-e-w] Emacs and AUCTeX

From: Stefan Reichör
Subject: Re: [h-e-w] Emacs and AUCTeX
Date: Thu, 09 Sep 2004 10:20:20 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (berkeley-unix)

Slava <address@hidden> writes:

> Greetings,
> I do not want to press `C-c C-c' and then to choose needed action.
> Does anybody know the way to bind a separate key to the separate AUCTeX
> commands:
> TeX-command-master: LaTeX
> TeX-command-master: View

I have something like that in my .emacs:

(defun tex-build-command-function (cmd &optional recenter-output-buffer 
  "Build a TeX-command function."
   (` (lambda()
        (when (, save-buffer) (save-buffer))
        (when (, recenter-output-buffer) (TeX-recenter-output-buffer nil))
        (TeX-command (, cmd) 'TeX-master-file))))

  (define-key LaTeX-mode-map [f6] (tex-build-command-function "LaTeX" nil t))
  (define-key LaTeX-mode-map [(shift f6)] (tex-build-command-function 
"PdfLaTeX" t t))
  (define-key LaTeX-mode-map [(super f6)] (tex-build-command-function "dviPS" 


reply via email to

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