all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Espen <despen@verizon.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Calling external programs in emacs
Date: Fri, 13 Jan 2017 17:34:12 -0500	[thread overview]
Message-ID: <o5bki4$gaq$1@dont-email.me> (raw)
In-Reply-To: o5b7nm$s3h$1@gioia.aioe.org

Sam Nirvana <samnirvana@linux.org> writes:

> 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?

That runs a shell command in vi.
Emacs can do that also (M-!),
but for compiling, you want to use the emacs command:

M-x compile

you probably want to bind a key to that.

The main reason you want to do a compile is because the Emacs
functions next-error and previous-error work after a compile.

The M-x command by default runs the command "make -k".
You can just type your command over that.

I highly recommend creating a Makefile.


-- 
Dan Espen


  parent reply	other threads:[~2017-01-13 22:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-13 18:53 Calling external programs in emacs Sam Nirvana
2017-01-13 20:46 ` tomas
2017-01-13 21:25 ` James K. Lowden
2017-01-13 21:51   ` Joost Kremers
2017-01-13 22:34 ` Dan Espen [this message]
2017-01-14 11:44   ` Jens Lechtenboerger
2017-01-18  3:40 ` Rusi
2017-01-18 18:21   ` John Mastro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='o5bki4$gaq$1@dont-email.me' \
    --to=despen@verizon.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.