Snippets for org-mode. See Yasnippet in Github.
They have bindings C-c y
plus an extra letter.
I have added a condition
statement so that the snippets can be
expanded only at the beginning of the line.
[2012-08-20 Mon] : Mike McLean.
There are a number of different versions of the Org mode yasnippets on github. This is my attempt to merge them so that I can have one single Org mode snippet repository.
name | key | letter | explanation |
---|---|---|---|
#+begin_ …#+end_ | block | b | Insert Org special block[fn:1] |
#+srcname:..#+begin_src…#+end_src | sb | s | source block with name |
attr_html | ath | alt=”$1” img class=”aligncenter” | |
attr_latex | atl | ${1:width=$2\textwidth} | |
author | aut | a | inserts #+author: |
corollary | cor | c | (uses reftex) |
definition | def | d | (uses reftex) |
desc | desc | inserts #+description: | |
ditaa | dit | #+begin_ditaa,+end_ditaa | |
docbook | docbook | inserts docbook block | |
el | el | #+begin_src emacs-lisp,+end_src | |
inserts #+email: | |||
equation | eqn | e | (uses reftex) |
example | example | #+begin_example … #+end_example | |
figure | fig | f | asks for image file |
fprop | fprop | File property #+property: | |
html | html | inserts html block | |
inc | inc | inserts #+include: | |
keywords | keywords | inserts #+keywords: | |
knitr | ks | inserts Knitr Source Code Block | |
knitr_fig | kf | inserts Knitr Figure Source Code Block | |
knitr_table | kt | inserts Knitr Table Source Code Block | |
language | lan | inserts #+language: (with choice) | |
latex | latex | inserts LaTeX block | |
LaTeX class | lcl | inserts #+latex_class: (with choice) | |
LaTeX header | lhe | inserts #+latex_header: | |
lemma | lem | l | (uses reftex) |
options | opt | o | inserts #+options: |
proof | prf | #+begin_proof … #+end_proof | |
properties folded | properties | inserts visibility folded property | |
proposition | pro | p | (uses reftex) |
res | res | inserts #+RESNAME: | |
seq | seq | inserts #+SEQ_TODO: | |
srcbat | srcbat | #+begin_src ntcmd … #+end_src | |
srcc | srcc | #+begin_src c … #+end_src | |
srccpp | srccpp | #+begin_src c++ … #+end_src | |
srccs | srccs | #+begin_src csharp … #+end_src | |
srccss | srccss | #+begin_src css … #+end_src | |
srcel | srcel | #+begin_src emacs-lisp … #+end_src | |
srcesn | srcesn | #+begin_src esn … #+end_src | |
srchtml | srchtml | #+begin_src html … #+end_src | |
srcini | srcini | #+begin_src conf … #+end_src | |
srclatex | srclatex | #+begin_src latex … #+end_src | |
srcnsi | srcnsi | #+begin_src nsis … #+end_src | |
srcpl | srcpl | #+begin_src perl … #+end_src | |
srcpy | srcpy | #+begin_src py … #+end_src | |
srcr | srcr | #+begin_src R … #+end_src | |
srcrb | srcrb | #+begin_src ruby … #+end_src | |
srcsh | srcsh | #+begin_src sh … #+end_src | |
srcvbs | srcvbs | #+begin_src visual-basic … #+end_src | |
startup | sta | inserts #+startup: | |
tags | tag | inserts #+tags: | |
text | text | inserts #+text: | |
theorem | thm | t | (uses reftex) |
tikz-figure | tikz-figure | z | (uses reftex) |
title | title | inserts #+title: |
[fn:1] See http://orgmode.org/worg/org-contrib/org-special-blocks.html. This is a merge of
the spb
snippet from punchagan and the block
snippet in the original