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: Joost Kremers
Subject: Re: automate command after saving
Date: 20 Nov 2015 14:00:02 GMT
User-agent: slrn/1.0.1 (Linux)

Martin Kaffanke wrote:
>
> Phillip Lord writes:
>
>> 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...."))
>
> That sounds interesting, but is this a 'per buffer hook' or something?

Hooks can usually have a global and a buffer-local value. See the
documentation for `add-hook' for details.


-- 
Joost Kremers                                   joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


reply via email to

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