Variable: org-export-snippet-translation-alist

org-export-snippet-translation-alist is a customizable variable defined in ox.el.gz.

Value

nil

Documentation

Alist between export snippets back-ends and exporter back-ends.

This variable allows providing shortcuts for export snippets.

For example, with:

  (setq org-export-snippet-translation-alist
        '(("h" . "html")))

the HTML back-end will recognize the contents of "@@h:<b>@@" as HTML code while every other back-end will ignore it.

This variable was added, or its default value changed, in Org version
8.0.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defcustom org-export-snippet-translation-alist nil
  "Alist between export snippets back-ends and exporter back-ends.

This variable allows providing shortcuts for export snippets.

For example, with:

  (setq org-export-snippet-translation-alist
        \\='((\"h\" . \"html\")))

the HTML back-end will recognize the contents of \"@@h:<b>@@\" as
HTML code while every other back-end will ignore it."
  :group 'org-export-general
  :version "24.4"
  :package-version '(Org . "8.0")
  :type '(repeat
	  (cons (string :tag "Shortcut")
		(string :tag "Back-end")))
  :safe (lambda (x)
	  (and (listp x)
	       (cl-every #'consp x)
	       (cl-every #'stringp (mapcar #'car x))
	       (cl-every #'stringp (mapcar #'cdr x)))))