unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs Key Bindings for AUCTEX
@ 2002-09-12  5:28 Wael Abd-Almageed
  2002-09-13 12:21 ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: Wael Abd-Almageed @ 2002-09-12  5:28 UTC (permalink / raw)



I'm new to Emacs and Lisp. I was wondering if someone would please tell me
how to bind key to the "Command" menu items of the AUCTEX major mode.

This is what I have in my "tex-site.el":

(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 "dviPS" "dvips %d -o %f" 'TeX-run-command nil t)
       (list "Ghostview" "c:\\tools\\GhostView\\gsview\\gsview32.exe %f"
'TeX-run-command nil t)
       (list "BibTeX" "bibtex %s" 'TeX-run-BibTeX nil nil)
       (list "Index" "makeindex %s" 'TeX-run-command nil t)
       (list "Check" "lacheck %s" 'TeX-run-compile nil t)
       (list "Other" "" 'TeX-run-command t t)))


Thanks

Wael

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs Key Bindings for AUCTEX
  2002-09-12  5:28 Emacs Key Bindings for AUCTEX Wael Abd-Almageed
@ 2002-09-13 12:21 ` Reiner Steib
  0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2002-09-13 12:21 UTC (permalink / raw)


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

[... exactly the same question again ...]

I tried to answer your question yesterday:

,----[ news:<v9bs732zvw.fsf@marauder.physik.uni-ulm.de> ]
| ;; 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.
| 
| [...] Crosspost & Followup-To: gnu.emacs.help
`----

If this is _not_ what you want or if it doesn't work, you should
explain your problem more detailed.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-13 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-12  5:28 Emacs Key Bindings for AUCTEX Wael Abd-Almageed
2002-09-13 12:21 ` Reiner Steib

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).