unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Roger Levy <sinoslav@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: binding emacs key combination to external program?
Date: Tue, 11 Sep 2007 10:42:38 -0000	[thread overview]
Message-ID: <1189507358.860005.223160@r29g2000hsg.googlegroups.com> (raw)
In-Reply-To: <slrnfebbvn.ooe.joostkremers@j.kremers4.news.arnhem.chello.nl>

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	other threads:[~2007-09-11 10:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-10 20:20 binding emacs key combination to external program? Roger Levy
2007-09-10 20:59 ` Joost Kremers
2007-09-11 10:42   ` Roger Levy [this message]
2007-09-11 15:23     ` Peter Dyballa
2007-09-11 17:05     ` Joost Kremers
2007-09-19 12:52       ` Roger Levy
2007-09-19 17:06         ` Joost Kremers
2007-09-25 22:00           ` Roger Levy
     [not found]     ` <mailman.707.1189524243.18990.help-gnu-emacs@gnu.org>
2007-09-19 12:54       ` Roger Levy
2007-09-10 23:55 ` Johan Lindström
2007-09-11  6:14 ` Matthias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1189507358.860005.223160@r29g2000hsg.googlegroups.com \
    --to=sinoslav@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).