Collection of snippets for yasnippet
Go to file
Andrea Crotti 3226ab8d87 gpl v3 2017-08-11 20:29:58 +01:00
antlr-mode remove all user entries 2011-12-11 19:12:17 +00:00
apples-mode Add applescript snippets from apples-mode (#179) 2017-04-30 15:13:04 +01:00
applescript-mode Add applescript snippets from apples-mode (#179) 2017-04-30 15:13:04 +01:00
c++-mode Make c++-mode access specifier snippets indent the first line (#190) 2017-07-10 22:56:29 +01:00
c-mode Deleted fopen snippet from c-mode 2015-06-04 17:39:42 -03:00
cc-mode cc-mode: Improve readability of main (#199) 2017-07-24 17:55:47 +01:00
chef-mode added machine for chef-provisioning 2015-01-28 16:02:23 -06:00
cider-repl-mode Replace symlinks with .yas-parents file 2016-11-17 09:12:04 -05:00
clojure-mode use cl-flet instead of flet 2017-07-29 12:22:06 +01:00
cmake-mode Some improvements to the cmake snippets. 2016-01-12 15:44:55 +01:00
conf-unix-mode remove all user entries 2011-12-11 19:12:17 +00:00
cperl-mode Bring cperl-mode back from yasnippet 0.8.0 2014-08-31 14:46:22 +08:00
cpp-omnet-mode remove all user entries 2011-12-11 19:12:17 +00:00
csharp-mode Add foreach snippet for C#. 2016-06-02 10:11:16 +02:00
css-mode remove incorrect use of binding: directive 2014-12-09 21:20:51 -05:00
dix-mode Updates to dix mode (#172) 2017-02-26 10:35:58 +00:00
elixir-mode Additional Elixir snippets (#166) 2016-11-23 10:26:26 +00:00
emacs-lisp-mode Added Binding for use-package (#178) 2017-03-20 22:35:36 +00:00
enh-ruby-mode Replace symlinks with .yas-parents file 2016-11-17 09:12:04 -05:00
ensime-mode Replace symlinks with .yas-parents file 2016-11-17 09:12:04 -05:00
erc-mode remove all user entries 2011-12-11 19:12:17 +00:00
erlang-mode add a whole bunch of snippets taken from other people 2011-11-03 14:07:34 +00:00
f90-mode Remove redundant/identical snippets 2015-06-03 16:48:56 -04:00
faust-mode add faust-mode 2016-02-10 23:08:54 +01:00
git-commit-mode magit-log-edit-mode obsoleted by git-commit-mode 2014-05-31 17:19:05 -04:00
go-mode go-mode: add a new snippet for parallel benchmark 2016-01-22 13:26:29 +08:00
groovy-mode Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04:00
haskell-mode remove redundant "Class" in class snippet 2017-05-03 15:37:08 +01:00
html-mode Added HTmL imports snippet, part of the web components specification. 2016-01-25 14:08:59 +08:00
java-mode few more improvements 2014-12-13 19:41:37 +00:00
js-mode Update function to remove duplicate field. (#189) 2017-05-01 11:56:17 +01:00
js2-mode Replace symlinks with .yas-parents file 2016-11-17 09:12:04 -05:00
js3-mode Replace symlinks with .yas-parents file 2016-11-17 09:12:04 -05:00
latex-mode latex: added complete template for moderncv class 2016-05-09 17:09:41 +02:00
lisp-interaction-mode remove a few contributor settings 2011-12-11 19:05:59 +00:00
lisp-mode Adding a few lisp snippets 2015-01-20 06:59:36 -07:00
lua-mode lua mode "paris" -> "pairs" typos (#183) 2017-04-30 15:09:10 +01:00
m4-mode remove all user entries 2011-12-11 19:12:17 +00:00
makefile-automake-mode remove a few contributor settings 2011-12-11 19:05:59 +00:00
makefile-bsdmake-mode remove all user entries 2011-12-11 19:12:17 +00:00
makefile-gmake-mode Add shell snippet for makefile-gmake-mode 2015-10-04 21:03:16 +03:00
makefile-mode Move clean snippet to `makefile-mode` 2015-09-29 15:21:27 +03:00
malabar-mode few java snippets 2014-12-13 19:40:50 +00:00
markdown-mode add highlight snippet for markdown-mode, jekyll 2015-05-18 11:32:52 +07:00
ned-mode Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04:00
nesc-mode closes issue #20 removing empty snippets 2014-02-23 17:52:12 +00:00
nix-mode nix-mode package_url: escape $ and { in name 2016-04-05 16:41:45 +02:00
nsis-mode Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04:00
nxml-mode massive cleanup of very simple tags that don't add much value anyway 2014-08-24 11:14:08 +01:00
octave-mode remove all user entries 2011-12-11 19:12:17 +00:00
org-mode add plantuml snippet 2016-06-03 20:44:21 -04:00
perl-mode Bring perl-mode back from yasnippet 0.8.0 2014-08-31 14:45:43 +08:00
prog-mode Don't use mirror transforms for constant expressions (#177) 2017-03-20 22:36:55 +00:00
protobuf-mode add protobuf mode 2017-06-19 15:06:30 +01:00
python-mode Update classmethod snippet (#194) 2017-07-11 15:49:35 +01:00
rst-mode Rename snippets 2016-06-04 08:12:59 +08:00
ruby-mode Add remote_pry snippets for ruby-mode (#200) 2017-07-31 21:48:20 +01:00
rust-mode Add: rust-mode: 1.19.0 introduced union (#198) 2017-07-24 17:56:25 +01:00
scala-mode add snippet for value classes 2016-04-12 15:27:37 +12:00
sh-mode sh-mode while-loop 2016-05-16 18:09:23 +00:00
snippet-mode Give a useful body to snippet-mode/cont(ributor) 2014-05-11 12:36:59 -04:00
sql-mode added insert in sql-mode 2016-06-21 12:22:00 -04:00
terraform-mode terraform mode 2017-07-14 21:30:34 +01:00
text-mode Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04:00
tuareg-mode Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04:00
typerex-mode Replace symlinks with .yas-parents file 2016-11-17 09:12:04 -05:00
udev-mode add a js-mode directory and more python scripts 2011-10-08 16:38:06 +01:00
web-mode Replace symlinks with .yas-parents file 2016-11-17 09:12:04 -05:00
yaml-mode Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04:00
.gitignore ignore compiled snippets 2014-10-03 11:24:04 -04:00
.nosearch Create .nosearch 2014-10-04 13:22:04 -04:00
CONTRIBUTORS.txt add contributors file 2013-12-11 20:43:44 +00:00
LICENSE gpl v3 2017-08-11 20:29:58 +01:00
README.md update docs fixes #100 2015-09-22 15:01:31 +01:00
rename_add_contr.py remove .yasnippet extension 2011-07-07 14:32:44 +02:00

README.md

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.