Make snippets for org header args
This commit is contained in:
parent
1dedd8c273
commit
4d2e6eed7b
12 changed files with 155 additions and 2 deletions
15
snippets/org-mode/header args/r
Normal file
15
snippets/org-mode/header args/r
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# -*- 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 " ")))`
|
||||
Loading…
Add table
Add a link
Reference in a new issue