From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: binding emacs key combination to external program? Date: 10 Sep 2007 20:59:29 GMT Message-ID: References: <1189455656.243011.125810@50g2000hsm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1189462636 22157 80.91.229.12 (10 Sep 2007 22:17:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 22:17:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 08:17:03 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUyUj-0003Tc-3b for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 07:41:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUr0M-0001OY-F4 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Sep 2007 17:41:14 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!feeder.news-service.com!newsfeed.freenet.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net cqfbG56LsgY5gSySALsXtwAOhVkEm8oIxVz7StMUc0jZr5sOrv Cancel-Lock: sha1:eOAe9CSIt5xu4a0olLZhpsJPzZ4= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.8.1 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:151942 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47450 Archived-At: 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. -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)