Julien Cubizolles <j.cubizol...@free.fr> 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.