218 lines
4.1 KiB
JSON
218 lines
4.1 KiB
JSON
{
|
|
"center block": {
|
|
"description": "#+BEGIN_CENTER block",
|
|
"prefix": "<C",
|
|
"body": [
|
|
"#+BEGIN_CENTER",
|
|
"$0",
|
|
"#+END_CENTER"
|
|
]
|
|
},
|
|
"comment block": {
|
|
"description": "#+BEGIN_COMMENT block",
|
|
"prefix": "<c",
|
|
"body": [
|
|
"#+BEGIN_COMMENT",
|
|
"$0",
|
|
"#+END_COMMENT"
|
|
]
|
|
},
|
|
"example block": {
|
|
"description": "#+BEGIN_EXAMPLE block",
|
|
"prefix": "<e",
|
|
"body": [
|
|
"#+BEGIN_EXAMPLE",
|
|
"$0",
|
|
"#+END_EXAMPLE"
|
|
]
|
|
},
|
|
"src block": {
|
|
"description": "#+BEGIN_SRC ... block",
|
|
"prefix": "<s",
|
|
"body": [
|
|
"#+BEGIN_SRC ${1:lang}",
|
|
"$0",
|
|
"#+END_SRC"
|
|
]
|
|
},
|
|
"verse": {
|
|
"description": "verse",
|
|
"prefix": "<v",
|
|
"body": [
|
|
"#+BEGIN_VERSE",
|
|
"$0",
|
|
"#+END_VERSE"
|
|
]
|
|
},
|
|
"export ascii": {
|
|
"description": "#+BEGIN_EXPORT ascii",
|
|
"prefix": "<a",
|
|
"body": [
|
|
"#+BEGIN_EXPORT ascii",
|
|
"$0",
|
|
"#+END_EXPORT"
|
|
]
|
|
},
|
|
"export html": {
|
|
"description": "#+BEGIN_EXPORT html block",
|
|
"prefix": "<h",
|
|
"body": [
|
|
"#+BEGIN_EXPORT html",
|
|
"$0",
|
|
"#+END_EXPORT"
|
|
]
|
|
},
|
|
"export latex": {
|
|
"description": "#+BEGIN_EXPORT latex block",
|
|
"prefix": "<l",
|
|
"body": [
|
|
"#+BEGIN_EXPORT latex",
|
|
"$0",
|
|
"#+END_EXPORT"
|
|
]
|
|
},
|
|
"quote block": {
|
|
"description": "#+BEGIN_QUOTE block",
|
|
"prefix": "<q",
|
|
"body": [
|
|
"#+BEGIN_QUOTE",
|
|
"$0",
|
|
"#+END_QUOTE"
|
|
]
|
|
},
|
|
"blog": {
|
|
"description": "blog",
|
|
"prefix": "blog",
|
|
"body": [
|
|
"#+STARTUP: showall indent",
|
|
"#+STARTUP: hidestars",
|
|
"#+BEGIN_HTML",
|
|
"---",
|
|
"layout: default",
|
|
"title: ${1:title}",
|
|
"excerpt: ${2:excerpt}",
|
|
"---",
|
|
"$0"
|
|
]
|
|
},
|
|
"code": {
|
|
"description": "code",
|
|
"prefix": "code",
|
|
"body": [
|
|
"#+BEGIN_${1:LANG} ${2:options}",
|
|
"$0",
|
|
"#+END_$1"
|
|
]
|
|
},
|
|
"dot": {
|
|
"description": "dot",
|
|
"prefix": "dot",
|
|
"body": [
|
|
"#+BEGIN_SRC dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent",
|
|
"$0",
|
|
"#+END_SRC",
|
|
"",
|
|
"[[file:$1]]"
|
|
]
|
|
},
|
|
"elisp": {
|
|
"description": "elisp",
|
|
"prefix": "elisp",
|
|
"body": [
|
|
"#+BEGIN_SRC emacs-lisp :tangle yes",
|
|
"$0",
|
|
"#+END_SRC"
|
|
]
|
|
},
|
|
"embedded": {
|
|
"description": "embedded",
|
|
"prefix": "emb",
|
|
"body": [
|
|
"src_${1:lang}${2:[${3:where}]}{${4:code}}"
|
|
]
|
|
},
|
|
"entry": {
|
|
"description": "entry",
|
|
"prefix": "entry",
|
|
"body": [
|
|
"#+BEGIN_HTML",
|
|
"---",
|
|
"layout: ${1:default}",
|
|
"title: ${2:title}",
|
|
"---",
|
|
"#+END_HTML",
|
|
"$0"
|
|
]
|
|
},
|
|
"export": {
|
|
"description": "export",
|
|
"prefix": "export",
|
|
"body": [
|
|
"#+BEGIN_EXPORT ${1:type}",
|
|
"$0",
|
|
"#+END_EXPORT"
|
|
]
|
|
},
|
|
"figure": {
|
|
"description": "figure",
|
|
"prefix": "fig",
|
|
"body": [
|
|
"#+CAPTION: ${1:caption}",
|
|
"#+ATTR_LATEX: ${2:scale=0.75}",
|
|
"#+LABEL: fig:${3:label}"
|
|
]
|
|
},
|
|
"header": {
|
|
"description": "org-file header",
|
|
"prefix": "head",
|
|
"body": [
|
|
"#+TITLE: ${1:Untitled Document}",
|
|
"#+AUTHOR: ${2:Author}",
|
|
"#+DATE: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}"
|
|
]
|
|
},
|
|
"image": {
|
|
"description": "img",
|
|
"prefix": "img",
|
|
"body": [
|
|
"#+ATTR_HTML: :alt $2 :align ${3:left} :class img",
|
|
"[[${1:src}]${4:[${5:title}]}]",
|
|
"$0"
|
|
]
|
|
},
|
|
"latex": {
|
|
"description": "latex",
|
|
"prefix": "latex",
|
|
"body": [
|
|
"#+BEGIN_LATEX",
|
|
"$0",
|
|
"#+END_LATEX"
|
|
]
|
|
},
|
|
"latex matrix": {
|
|
"description": "matrix",
|
|
"prefix": "matrix",
|
|
"body": [
|
|
"\\left \\(",
|
|
"\t\\begin{array}{${1:ccc}}",
|
|
"\t\t${2:v1 & v2} \\\\\\",
|
|
"\t\t$0",
|
|
"\t\\end{array}",
|
|
"\\right \\)"
|
|
]
|
|
},
|
|
"todo": {
|
|
"description": "TODO item",
|
|
"prefix": "todo",
|
|
"body": [
|
|
"TODO ${1:task description}"
|
|
]
|
|
},
|
|
"html width": {
|
|
"description": "#+attr_html: :width ...",
|
|
"body": [
|
|
"#+ATTR_HTML: :width ${1:500px}"
|
|
]
|
|
}
|
|
}
|