From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib <4uce.02.r.steib@gmx.net> Newsgroups: gmane.emacs.help Subject: Re: Key bindings for AUXTEX Date: Thu, 12 Sep 2002 13:47:31 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031832364 28398 127.0.0.1 (12 Sep 2002 12:06:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2002 12:06:04 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17pSjS-0007Nn-00 for ; Thu, 12 Sep 2002 14:06:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pSjb-0003R9-00; Thu, 12 Sep 2002 08:06:11 -0400 Original-Newsgroups: gnu.emacs.gnus,gnu.emacs.help Original-Followup-To: gnu.emacs.help X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1370 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1370 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/