From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Calling external programs in emacs
Date: Fri, 13 Jan 2017 21:46:06 +0100 [thread overview]
Message-ID: <20170113204606.GA10416@tuxteam.de> (raw)
In-Reply-To: <o5b7nm$s3h$1@gioia.aioe.org>
-----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-----
next prev parent reply other threads:[~2017-01-13 20:46 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 [this message]
2017-01-13 21:25 ` James K. Lowden
2017-01-13 21:51 ` Joost Kremers
2017-01-13 22:34 ` Dan Espen
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=20170113204606.GA10416@tuxteam.de \
--to=tomas@tuxteam.de \
--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.