help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run shell command from latex?


From: David Hansen
Subject: Re: Run shell command from latex?
Date: Thu, 10 Apr 2008 08:48:11 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

On Wed, 09 Apr 2008 22:39:03 +0200 saneman wrote:

> I know but I don't want to type 'make' each time. Instead I would like
> to define a short key in my .emacs file that executes the script.
>
> Something like:
>
> (global-set-key "\C-r" 'myscript)

(defun do-myscript ()
  (interactive)
  (shell-command "myscript"))

(global-set-key (kbd "C-r") #'do-myscript)

Anyway, compile mode is far more convenient if it understands your error
messages.  You could e.g. (global-set-key (kbd "C-c c") #'compile) if
you don't like to type M-x compile every time.

But in case of latex files it's probably a better idea to look how to
manipulate the external programs used by auctex (don't know if
compile-mode understands latexs error messages).

David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]