[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] File-local export filters
From: |
Rasmus |
Subject: |
Re: [O] File-local export filters |
Date: |
Mon, 23 Sep 2013 11:19:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi Carsten,
Carsten Dominik <address@hidden> writes:
> Have I overlooked an easy way to do this, or would this be
> something others would like to use as well.
Can't you identify it by the folder name? Or with a
special #+DESCRIPTION or #+KEYWORDS?
Like this:
#+TITLE: MySpecialFile.org
#+begin_src emacs-lisp
(defun rasmus/match-buffer (text backend info)
"Match only some buffers identified by "
(if (and
(string-match "MySpecialFile" (plist-get info :input-file))
(org-export-derived-backend-p backend 'latex))
"Match!" text))
(add-to-list 'org-export-filter-final-output-functions
'rasmus/match-buffer)
#+end_src
Otherwise I'd also bind the value locally and maintain the code in a
SETUPFILE or in a * lisp :noexport: heading.
–Rasmus
--
I almost cut my hair, it happened just the other day