doom-config/snippets/org-mode/header args/r

15 lines
625 B
Plaintext
Raw Permalink Normal View History

2024-03-07 01:46:11 -05:00
# -*- mode: snippet -*-
# key: r
# name: header arg - results
# condition: (~/yas-org-src-header-p)
# --
`(let ((out
(->>
'((:results "Result collection: " ("value" "output"))
(:results "Results type: " ("table" "vector" "list" "verbatim" "file"))
(:results "Results format: " ("code" "drawer" "html" "latex" "link" "graphics" "org" "pp" "raw"))
(:results "Result output: " ("silent" "replace" "append" "prepend")))
(--map (apply #'~/yas-org-prompt-header-arg it))
-non-nil
(s-join " "))))
(if (string= out "") "" (concat ":results " out " ")))`