From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Calling external programs in emacs Date: Fri, 13 Jan 2017 21:46:06 +0100 Message-ID: <20170113204606.GA10416@tuxteam.de> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1484340427 2612 195.159.176.226 (13 Jan 2017 20:47:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2017 20:47:07 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 13 21:47:03 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 1cS8kH-0006vR-8P for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jan 2017 21:46:45 +0100 Original-Received: from localhost ([::1]:45155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cS8kL-0005Q8-S2 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jan 2017 15:46:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cS8jr-0005Ps-T7 for help-gnu-emacs@gnu.org; Fri, 13 Jan 2017 15:46:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cS8jo-0004y4-Qq for help-gnu-emacs@gnu.org; Fri, 13 Jan 2017 15:46:19 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:42777 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cS8jo-0004xe-KW for help-gnu-emacs@gnu.org; Fri, 13 Jan 2017 15:46:16 -0500 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1cS8je-0002y6-Ap for help-gnu-emacs@gnu.org; Fri, 13 Jan 2017 21:46:06 +0100 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 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:112111 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jan 13, 2017 at 06:53:42PM +0000, Sam Nirvana wrote: > I'm new to emacs, so forgive my inexperience. > > As you know, with Vim I can compile, say, a TeX file from within the > editor with the following command: > > :!pdftex % > > Is there a way to do the same thing with emacs? Yes. If your buffer is in TeX mode, you can either hit C-c C-f or go through the menu TeX -> TeX file. You can control which command is issued by setting the variable "tex-command" (try, when in TeX mode, hitting C-h C-v, then entering tex-command (TAB autocompletes) and follow the instructions. Other modes (C, whatever) have similar compile commands. You get a new buffer with the compile log; errors have a link to the source spot, when possible. For TeX mode, you have shortcuts for opening the DVI file (C-c C-v) - -- or the PDF file, depending on how you set up things. Try M-x customize-group RET tex RET and follow the links, to get an impression on what is there. Ask away when stuck :-) regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlh5PI4ACgkQBcgs9XrR2kaVVgCeMOEIiH6bgznaxIwIEyHMMsHn BgQAn26yySm50OfpdmKuaVwu4x8S8ua4 =hDWw -----END PGP SIGNATURE-----