From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: automate command after saving Date: 20 Nov 2015 14:00:02 GMT Message-ID: References: <87ziyamhx1.fsf@kaffanke.at> <87lh9u6pk9.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448028033 31138 80.91.229.3 (20 Nov 2015 14:00:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2015 14:00:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 20 15:00:29 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZzmEj-0004nX-GJ for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2015 15:00:25 +0100 Original-Received: from localhost ([::1]:47494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzmEi-0003kN-Mn for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2015 09:00:24 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: individual.net WSPaDoYztz09Py7X1NVoLw+U1UnFswwueJxw4jZWmyhIgdy1cA Cancel-Lock: sha1:JFbf9+jqBXX6iuxW0K56KAZGCEQ= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/1.0.1 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:215877 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108164 Archived-At: 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)