[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Using Buffer name in :include export property
From: |
Julien Cubizolles |
Subject: |
Re: [O] Using Buffer name in :include export property |
Date: |
Fri, 29 Aug 2014 12:34:37 +0200 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) |
Julien Cubizolles <address@hidden> writes:
> Thanks for the pointer, it works:
>
> (defun jc-org-publish-project-options ()
> (setq org-publish-project-alist
> `(("TeX"
> :base-directory "./"
> :publishing-directory "./"
> :publishing-function org-beamer-publish-to-latex
> :exclude ".*"
> :latex-class "mpsi_beamer"
> :include , (list (file-name-nondirectory buffer-file-name))
> )
> ( several other projects...)
> )))
>
> (add-hook 'org-mode-hook 'jc-org-publish-project-options)
> (add-hook 'org-export-before-processing-hook 'jc-org-publish-project-options)
Arg, it doesn't: org-export-before-processing-hook calls its functions
with the backend as an argument, so I could do
--8<---------------cut here---------------start------------->8---
(defun jc-org-publish-project-options (backend)
--8<---------------cut here---------------end--------------->8---
but the call to jc-org-publish-project-options in org-mode-hook doesn't
work anymore then...
Julien.