From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: File-local export filters Date: Sat, 21 Sep 2013 13:45:29 +0200 Message-ID: <877gea2yau.fsf@gmail.com> References: <4D2D5EF0-F2CD-4B54-8562-488E43824596@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNLcq-0007xq-R9 for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 07:45:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNLci-0004pO-2q for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 07:45:24 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:49506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNLch-0004oa-RR for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 07:45:16 -0400 Received: by mail-wi0-f169.google.com with SMTP id hj3so600147wib.0 for ; Sat, 21 Sep 2013 04:45:14 -0700 (PDT) In-Reply-To: <4D2D5EF0-F2CD-4B54-8562-488E43824596@gmail.com> (Carsten Dominik's message of "Sat, 21 Sep 2013 13:19:17 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode mode Hello, Carsten Dominik writes: > I guess this is mostly a request for Nicolas, but maybe others would > like to chime in. > > Quite often I am in a situation where I want to use filters > to customize the export for a specific file. I was wondering > if it would be useful to support a special source code block > that can contain code that should be executed before export in > a way that a temporary list of export filters is installed > for this specific backend and then removed again. > > For example, I would like to have special formatting of > time stamps in a specific file - I could then use this > to install a filter in org-export-filter-timestamp-functions > that would do this special formatting, without influencing > what happens to other exports. > > Have I overlooked an easy way to do this, or would this be > something others would like to use as well. I didn't check, but I think it is possible to set filter through #+BIND keyword? Otherwise, you can try file local variables. Regards, -- Nicolas Goaziou