I do something similar to change export options between HTML and LaTeX: (defun my-org-export-change-options (plist backend) (cond ((equal backend 'html) (plist-put plist :with-toc nil) (plist-put plist :section-numbers nil)) ((equal backend 'latex) (plist-put plist :with-toc t) (plist-put plist :section-numbers t))) plist) (add-to-list 'org-export-filter-options-functions 'my-org-export-change-options) --- Jay Dixit jaydixit.com (646) 355-8001 Jay Dixit On Mon, Jul 6, 2015 at 10:16 AM, wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Mon, Jul 06, 2015 at 11:32:21AM +0200, Rasmus wrote: > [...] > > I'd use a macro for this. E.g. > > Works like a charm now :-) > > - -- t > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAlWaja4ACgkQBcgs9XrR2kaEzgCfbM0McF+Yi3sR1prWI8ix1cpu > pTIAn0PQumh5sUJmE4UBQm9OFd8Nc/CV > =z5tl > -----END PGP SIGNATURE----- > > >