emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Introduce "export features"


From: No Wayman
Subject: Re: [PATCH] Introduce "export features"
Date: Sat, 11 Feb 2023 12:03:21 -0500
User-agent: mu4e 1.9.19; emacs 30.0.50


often we include content in export templates that is only relevant in
particular situations.

“export features” allow for the specification of qualities of the org buffer being exported that imply certain “features”, and how those features may be
implemented in a particular export.

now `\usepackage{svg}' is automatically added when exporting a buffer that
includes SVG images.

┌────
│ (org-export-update-features 'beamer
│   (beamer-metropolis
│ :condition (string-match-p \"metropolis$\" (plist-get info :beamer-theme))
│    :snippet my-org-beamer-metropolis-tweaks
│    :order 3))
└────

As discussed on the Doom Emacs Discord, I strongly suggest renaming to avoid overloading the term "feature". To me, your description indicates sinppets are inserted contextually. Org has a similar notion of contexts with `org-capture-templates-contexts'. A similar name would be better as it does not overload the term "feature", which already has a different meaning in elisp.
e.g. org-export-backend-contexts



reply via email to

[Prev in Thread] Current Thread [Next in Thread]