From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: adamsonj@email.unc.edu (Joel J. Adamson) Newsgroups: gmane.emacs.help Subject: Re: simple tex shell command Date: Wed, 11 Jun 2008 09:42:21 -0400 Message-ID: <87lk1c141u.fsf@edna.homeunix.org> References: <2a238cd9-e48e-44a5-8237-ff0e3f17138d@p25g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213192094 5108 80.91.229.12 (11 Jun 2008 13:48:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2008 13:48:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "benjamin.friedrich" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 11 15:48:56 2008 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 1K6Qgs-0007Tu-Dt for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2008 15:48:42 +0200 Original-Received: from localhost ([127.0.0.1]:41493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6Qg5-0004NL-0g for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2008 09:47:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6QfN-0003zw-5g for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 09:47:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6QfL-0003yD-HA for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 09:47:08 -0400 Original-Received: from [199.232.76.173] (port=44777 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6QfL-0003xt-7w for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 09:47:07 -0400 Original-Received: from smtpsrv0.isis.unc.edu ([152.2.1.139]:49987 helo=smtp.unc.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K6QfK-000341-Rb for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 09:47:07 -0400 Original-Received: from edna (cpe-071-065-251-190.nc.res.rr.com [71.65.251.190]) (authenticated bits=0) by smtp.unc.edu (8.13.4/8.13.4) with ESMTP id m5BDkAd4015486; Wed, 11 Jun 2008 09:46:14 -0400 (EDT) In-Reply-To: <2a238cd9-e48e-44a5-8237-ff0e3f17138d@p25g2000hsf.googlegroups.com> (benjamin friedrich's message of "Tue, 10 Jun 2008 05:40:15 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:54734 Archived-At: "benjamin.friedrich" writes: > Dear all, > > I am a lisp newbie; > I want to define a short-cut in my .emacs which automatically runs > latex on my thesis, > i.e. something like this > > (defun tex-thesis () "latex my thesis" "latex \\nonstopmode\input -src > E:/thesis/thesis.tex") > (global-set-key [f4] 'tex-thesis) > > How should this read as correct lisp code? > > Thanks, > Ben You could instead use AUCTeX, the Emacs mode for LaTeX (and other TeX) editing. No need to re-invent the wheel, or AUCTeX ;) Then when you are editing LaTeX, all you do is "C-cC-c" and you're good to go. Joel -- Joel J. Adamson (303) 880-3109 Public key: http://pgp.mit.edu Homepage: http://www.unc.edu/~adamsonj Please read http://www.unc.edu/~adamsonj/roe.html