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

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

Re: automate command after saving


From: Marcin Borkowski
Subject: Re: automate command after saving
Date: Thu, 19 Nov 2015 16:10:07 +0100
User-agent: mu4e 0.9.15; emacs 25.0.50.1

On 2015-11-19, at 15:17, Phillip Lord <phillip.lord@newcastle.ac.uk> wrote:

> You could do this using after-save-hook. So, something like
>
> (add-hook 'after-save-hook
>           'pandoc-hook)
>
> (defun pandoc-hook()
>   (compile "pandoc -t latex...."))
>
> Personally, I do this outside Emacs, though, with this little bash
> script.

You could also use focus-out-hook to run the compilation each time you
/leave Emacs/.

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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