help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Key bindings for AUXTEX


From: Reiner Steib
Subject: Re: Key bindings for AUXTEX
Date: Thu, 12 Sep 2002 13:47:31 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i586-pc-linux-gnu)

On Thu, Sep 12 2002, Wael Abd-Almageed wrote:

> I'm new to Emacs and Lisp. I was wondering if someone would please tell me
> how to bind keys to the "Command" menu of the emacs in the LaTeX major
> mode.
>
> This is what I have in the "tex-site.el" file:
>
> (defvar TeX-command-list
>   (list(list "LaTeX" "latex \\nonstopmode\\input{%t}" 'TeX-run-LaTeX nil
> t)
>        (list "View" "yap %d" 'TeX-run-command nil t)
[...]
>        (list "Other" "" 'TeX-run-command t t)))

Beside what Oliver mentioned (use `C-c C-c' and TAB to complete the
commands), you can bind the commands in this way: 

;; in tex-site.el or in ~/.emacs:
(eval-after-load
 "latex"
 '(define-key LaTeX-mode-map [(shift f6)]
    '(lambda ()
       (interactive)
       (TeX-command "View" 'TeX-master-file))))

This binds [(shift f6)] to the "View" entry.

This is not a Gnus issue, Crosspost & Followup-To: gnu.emacs.help

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


reply via email to

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