unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to tell AucTeX to use a Makefile
@ 2008-08-16 10:52 Jonas
  2008-08-16 14:19 ` Patrick Drechsler
  0 siblings, 1 reply; 3+ messages in thread
From: Jonas @ 2008-08-16 10:52 UTC (permalink / raw
  To: help-gnu-emacs

Hi:


for writting Latex-code I use Emacs and Auctex. Since I have a nice
Makefile it would be great to use it and bind it to the shortcut C-c C-
c. What do I have to write into my .emac file?


Cheers.
  Jonas


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to tell AucTeX to use a Makefile
  2008-08-16 10:52 how to tell AucTeX to use a Makefile Jonas
@ 2008-08-16 14:19 ` Patrick Drechsler
  2008-09-13  0:14   ` Jonas
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Drechsler @ 2008-08-16 14:19 UTC (permalink / raw
  To: help-gnu-emacs

Jonas <jonasmetz@googlemail.com> writes:

> for writting Latex-code I use Emacs and Auctex. Since I have a nice
> Makefile it would be great to use it and bind it to the shortcut C-c C-
> c. What do I have to write into my .emac file?

; At the end of the tex file, this will also find the correct make file

;; %%% Local Variables: 
;; %%% TeX-command-default: "Make"
;; %%% mode: latex
;; %%% TeX-master: "masterfile"
;; %%% End: 

; This adds Make to the tex command list.
(eval-after-load "tex"
  '(add-to-list 'TeX-command-list '("Make" "make" TeX-run-command nil t)))

HTH

Patrick


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to tell AucTeX to use a Makefile
  2008-08-16 14:19 ` Patrick Drechsler
@ 2008-09-13  0:14   ` Jonas
  0 siblings, 0 replies; 3+ messages in thread
From: Jonas @ 2008-09-13  0:14 UTC (permalink / raw
  To: help-gnu-emacs

On 16 Aug., 16:19, Patrick Drechsler <patr...@pdrechsler.de> wrote:
> Jonas <jonasm...@googlemail.com> writes:
> > for writting Latex-code I use Emacs and Auctex. Since I have a nice
> > Makefile it would be great to use it and bind it to the shortcut C-c C-
> > c. What do I have to write into my .emac file?
>
> ; At the end of the tex file, this will also find the correct make file
>
> ;; %%% Local Variables:
> ;; %%% TeX-command-default: "Make"
> ;; %%% mode: latex
> ;; %%% TeX-master: "masterfile"
> ;; %%% End:
>
> ; This adds Make to the tex command list.
> (eval-after-load "tex"
>   '(add-to-list 'TeX-command-list '("Make" "make" TeX-run-command nil t)))
>
> HTH
>
> Patrick

Great. Thank you very much.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-13  0:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-16 10:52 how to tell AucTeX to use a Makefile Jonas
2008-08-16 14:19 ` Patrick Drechsler
2008-09-13  0:14   ` Jonas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).