my-emacs-d/elpa/yasnippet-20160924.2001/snippets
2016-10-20 10:27:10 +02:00
..
antlr-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
applescript-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
c-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
c++-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
cc-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
chef-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
clojure-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
cmake-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
conf-unix-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
cperl-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
cpp-omnet-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
csharp-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
css-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
dix-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
elixir-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
emacs-lisp-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
erc-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
erlang-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
f90-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
faust-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
fundamental-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
git-commit-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
go-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
groovy-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
haskell-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
html-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
java-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
js-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
latex-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
lisp-interaction-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
lisp-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
lua-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
m4-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
makefile-automake-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
makefile-bsdmake-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
makefile-gmake-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
makefile-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
malabar-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
markdown-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
ned-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
nesc-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
nix-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
nsis-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
nxml-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
octave-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
org-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
perl-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
prog-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
python-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
rst-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
ruby-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
scala-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
sh-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
snippet-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
sql-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
text-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
tuareg-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
udev-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
yaml-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
.gitignore Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
.nosearch Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
cider-repl-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
CONTRIBUTORS.txt Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
enh-ruby-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
ensime-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
js2-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
js3-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
LICENSE Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
README.md Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
rename_add_contr.py Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
typerex-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00
web-mode Install yasnippet and vala-snippets packages 2016-10-20 10:27:10 +02:00

Yasnippet official snippet collections

Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets This repository contains the official snippets for yasnippet, as you can see from the git submodules link.

How to install

There are two options, if you have checked out yasnippet already, the only thing you need to do is to run git submodule update --init and it will checkout automatically this repository, at the last version it was synchronized too.

Otherwise if you want the latest and greatest snippets collection proceed as follows:

  1. clone this repository

  2. add to your .emacs the following

    • (add-to-list 'yas-snippet-dirs "$$DIRECTORY_WHERE_YOU_CLONED")
    • and in case you want to enable yasnippet globally: (yas-global-mode t)
  3. M-x yas-reload-all to activate them

Contributing

This repository has now become the default snippets repository (as a submodule) in yasnippet. So if you have any useful snippets for any language or framework please feel free to contribute.

To study the current snippets I suggest to use M-x yas-describe-tables which will gave a table representation of all the snippets available in the current mode.

Guidelines

Snippets need to be generic enough to be useful for everyone, and not contain anything specific to your own system.

Various notes

HTML snippets

Until September 1st 2014 there were a lot of HTML snippets in the repository, which were sometimes useful but I came to the conclusion that yasnippet was not the right fool for them, so they were removed in this pull request: https://github.com/AndreaCrotti/yasnippet-snippets/pull/49

To everyone writing a lot of HTML I suggest using emmet mode instead, which is a much more powerful mode for writing HTML tags.