all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.