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

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

Re: binding emacs key combination to external program?


From: Roger Levy
Subject: Re: binding emacs key combination to external program?
Date: Tue, 11 Sep 2007 10:42:38 -0000
User-agent: G2/1.0

On Sep 10, 1:59 pm, Joost Kremers <joostkrem...@yahoo.com> wrote:
> Roger Levy wrote:
> > I use a shell script to compile my LaTeX files from the command line
> > and turn them into PDFs in one go-around (using ps2pdf rather than
> > pdflatex), and I would like to bind an Emacs key combination to the
> > execution of this script on the buffer.  How can I do this?  I'm
> > having a hard time figuring it out from the manual.
>
> you need to define a lisp function that calls your shell script on the
> current buffer, and then bind your desired key combo to this function.
>
> but more likely you should consider using AUCTeX (google for it). AUCTeX
> can be customised to call your script. plus it has a gazillion other
> benefits when writing latex documents.

Many thanks -- I do use AUCTeX but wasn't aware you can customize it
this way.  Would the best way to be to edit the TeX-command-list
variable?

Roger



reply via email to

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