Giter VIP home page Giter VIP logo

yasnippets's Introduction

yasnippets

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.

namekeyletterexplanation
#+begin_ …#+end_blockbInsert Org special block[fn:1]
#+srcname:..#+begin_src…#+end_srcsbssource block with name
attr_htmlathalt=”$1” img class=”aligncenter”
attr_latexatl${1:width=$2\textwidth}
authorautainserts #+author:
corollarycorc(uses reftex)
definitiondefd(uses reftex)
descdescinserts #+description:
ditaadit#+begin_ditaa,+end_ditaa
docbookdocbookinserts docbook block
elel#+begin_src emacs-lisp,+end_src
emailemailinserts #+email:
equationeqne(uses reftex)
exampleexample#+begin_example … #+end_example
figurefigfasks for image file
fpropfpropFile property #+property:
htmlhtmlinserts html block
incincinserts #+include:
keywordskeywordsinserts #+keywords:
knitrksinserts Knitr Source Code Block
knitr_figkfinserts Knitr Figure Source Code Block
knitr_tablektinserts Knitr Table Source Code Block
languagelaninserts #+language: (with choice)
latexlatexinserts LaTeX block
LaTeX classlclinserts #+latex_class: (with choice)
LaTeX headerlheinserts #+latex_header:
lemmaleml(uses reftex)
optionsoptoinserts #+options:
proofprf#+begin_proof … #+end_proof
properties foldedpropertiesinserts visibility folded property
propositionprop(uses reftex)
resresinserts #+RESNAME:
seqseqinserts #+SEQ_TODO:
srcbatsrcbat#+begin_src ntcmd … #+end_src
srccsrcc#+begin_src c … #+end_src
srccppsrccpp#+begin_src c++ … #+end_src
srccssrccs#+begin_src csharp … #+end_src
srccsssrccss#+begin_src css … #+end_src
srcelsrcel#+begin_src emacs-lisp … #+end_src
srcesnsrcesn#+begin_src esn … #+end_src
srchtmlsrchtml#+begin_src html … #+end_src
srcinisrcini#+begin_src conf … #+end_src
srclatexsrclatex#+begin_src latex … #+end_src
srcnsisrcnsi#+begin_src nsis … #+end_src
srcplsrcpl#+begin_src perl … #+end_src
srcpysrcpy#+begin_src py … #+end_src
srcrsrcr#+begin_src R … #+end_src
srcrbsrcrb#+begin_src ruby … #+end_src
srcshsrcsh#+begin_src sh … #+end_src
srcvbssrcvbs#+begin_src visual-basic … #+end_src
startupstainserts #+startup:
tagstaginserts #+tags:
texttextinserts #+text:
theoremthmt(uses reftex)
tikz-figuretikz-figurez(uses reftex)
titletitleinserts #+title:

Footnotes

[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

yasnippets's People

Contributors

skydivemike avatar rvf0068 avatar eschulte avatar testing-class-user avatar khaos avatar mrc avatar mattfidler avatar cofi avatar punchagan avatar

Stargazers

Emrah Er avatar

Watchers

 avatar James Cloos avatar

Forkers

drskalman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.