From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Calling external programs in emacs Date: Tue, 17 Jan 2017 19:40:12 -0800 (PST) Message-ID: <84ae994b-0052-4416-9b68-e9692a26f7e8@googlegroups.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1484711130 21287 195.159.176.226 (18 Jan 2017 03:45:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Jan 2017 03:45:30 +0000 (UTC) Injection-Date: Wed, 18 Jan 2017 03:40:13 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 18 04:45:25 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cThBb-0004tP-Pg for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jan 2017 04:45:23 +0100 Original-Received: from localhost ([::1]:39087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cThBg-0002f0-4C for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jan 2017 22:45:28 -0500 X-Received: by 10.200.37.208 with SMTP id f16mr276149qtf.15.1484710813046; Tue, 17 Jan 2017 19:40:13 -0800 (PST) X-Received: by 10.157.43.215 with SMTP id u81mr49786ota.15.1484710813007; Tue, 17 Jan 2017 19:40:13 -0800 (PST) Original-Path: usenet.stanford.edu!q58no25308qte.0!news-out.google.com!78ni1040itm.0!nntp.google.com!r185no39358ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=117.195.53.178; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 117.195.53.178 Original-Xref: usenet.stanford.edu gnu.emacs.help:219055 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112123 Archived-At: On Saturday, January 14, 2017 at 12:23:46 AM UTC+5:30, Sam Nirvana wrote: > I'm new to emacs, so forgive my inexperience. >=20 > As you know, with Vim I can compile, say, a TeX file from within the=20 > editor with the following command: >=20 > :!pdftex % >=20 > Is there a way to do the same thing with emacs? Others have already told you about M-! (also to be found on Menu=E2=86=92To= ols=E2=86=92Shell Command) The % trick however does not work OTB in emacs Here is some elisp that can help that https://lists.gnu.org/archive/html/help-gnu-emacs/2008-08/msg00482.html