Variable: org-export-global-macros
org-export-global-macros is a customizable variable defined in
ox.el.gz.
Value
nil
Documentation
Alist between macro names and expansion templates.
This variable defines macro expansion templates available globally. Associations follow the pattern
(NAME . TEMPLATE)
where NAME is a string beginning with a letter and consisting of alphanumeric characters only.
TEMPLATE is the string to which the macro is going to be
expanded. Inside, "$1", "$2"... are place-holders for
macro's arguments. Moreover, if the template starts with
"(eval", it will be parsed as an Elisp expression and evaluated
accordingly.
This variable was added, or its default value changed, in Org version
9.1.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defcustom org-export-global-macros nil
"Alist between macro names and expansion templates.
This variable defines macro expansion templates available
globally. Associations follow the pattern
(NAME . TEMPLATE)
where NAME is a string beginning with a letter and consisting of
alphanumeric characters only.
TEMPLATE is the string to which the macro is going to be
expanded. Inside, \"$1\", \"$2\"... are place-holders for
macro's arguments. Moreover, if the template starts with
\"(eval\", it will be parsed as an Elisp expression and evaluated
accordingly."
:group 'org-export-general
:version "26.1"
:package-version '(Org . "9.1")
:type '(repeat
(cons (string :tag "Name")
(string :tag "Template"))))