From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Kaffanke Newsgroups: gmane.emacs.help Subject: automate command after saving Date: Thu, 19 Nov 2015 10:56:26 +0100 Message-ID: <87ziyamhx1.fsf@kaffanke.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447942211 20872 80.91.229.3 (19 Nov 2015 14:10:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2015 14:10:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 19 15:10:02 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 1ZzPuO-0000bw-KT for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 15:09:56 +0100 Original-Received: from localhost ([::1]:41938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzPuO-00085E-8Z for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 09:09:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzLxA-000131-04 for help-gnu-emacs@gnu.org; Thu, 19 Nov 2015 04:56:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzLx6-0005GB-NS for help-gnu-emacs@gnu.org; Thu, 19 Nov 2015 04:56:31 -0500 Original-Received: from kaffanke.at ([91.228.52.116]:59311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzLx6-0005FH-IV for help-gnu-emacs@gnu.org; Thu, 19 Nov 2015 04:56:28 -0500 Original-Received: from martin-arch (212-197-164-242.adsl.highway.telekom.at [212.197.164.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by kaffanke.at (Postfix) with ESMTPSA id D572544F0011 for ; Thu, 19 Nov 2015 10:56:26 +0100 (CET) User-agent: mu4e 0.9.13; emacs 24.5.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 91.228.52.116 X-Mailman-Approved-At: Thu, 19 Nov 2015 09:09:46 -0500 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:108132 Archived-At: Hi there, I'd like to run a command after saving, but just if I switch it on. Following scenario: When I write on an org file, before printing I look at the pdf version created by pandoc -t latex -o filename-without-org-but-with.pdf filename.org And then I switch to emacs to do corrections. Now I'd like to automatically run pandoc again when I switch back to evince (which automaticaly loads the pdf new when changed on disk). How could a make a switch for emacs to automatically run pandoc again after C-x C-s? Thanks for your Ideas, Martin -- Mag. Martin Kaffanke http://www.kaffanke.at +43 650 4514224