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: pdflatex short-cut keys Date: 19 Nov 2007 01:46:15 GMT Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1195440038 7658 80.91.229.12 (19 Nov 2007 02:40:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2007 02:40:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 19 03:40:44 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 1ItwZ0-0007F5-HQ for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2007 03:40:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItwYn-0007Xm-2r for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Nov 2007 21:40:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!storethat.news.telefonica.de!telefonica.de!news-fra1.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-X-Trace: individual.net 2gZV1ssf4/Gjyc7vCh6SsgCPbCpmSo+pwJpBHsfvyH87TsMoew Cancel-Lock: sha1:980mRSDxz8A5a0rquwenB87g/As= 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:153901 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:49332 Archived-At: Christian_Yale wrote: > I want to have a short-cut key for running latex (under pdf mode) in > emacs22, C-c C-c RET if the file was modified from the last time latex was run, that will do the trick. C-c C-c is also the proper way to run other commands, such as opening viewers and a couple of other things. > then i do not need to click the icon (the lion one, where > appear 'Run LaTeX' if you put the mouse over it) for doing so. I put > the following in my .emacs file, but it did not work (i wanted to get > "ALT+t" to run latex): the default binding of M-t is way too useful to rebind it to anything else. IHMO you'd better stick to the shortcut keys that AUCTeX provides by default, there's good reason why they're set up the way they are. > (list "pdfLaTeX" "pdflatex '\\nonstopmode\\input{%t}'" 'TeX-run-LaTeX > nil t) i'm not entirely sure what you're trying to accomplish here. > (global-set-key "\M-t" 'do-pdflatex) > (defun do-pdflatex () > "pdflatex the current file." > (interactive) > (TeX-command "pdfLaTeX" 'TeX-master-file)) > > but, is not working at all, I mean when i "ALT+t" appear a message (in > emacs) that says > > Wrong type argument: stringp, nil somewhere a function is getting an argument of nil where a stringp is expected. you'll probably have to dig a little to find out where. -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)