[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling external programs in emacs
From: |
tomas |
Subject: |
Re: Calling external programs in emacs |
Date: |
Fri, 13 Jan 2017 21:46:06 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----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-----