Collection of snippets for yasnippet
Go to file
Andrea Crotti 95865dd3f7 Merge pull request #146 from josteink/master
Add foreach snippet for C#.
2016-06-03 10:06:04 +01:00
antlr-mode remove all user entries 2011-12-11 19:12:17 +00:00
applescript-mode Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04:00
c++-mode c++-mode/class11: move some code to functions in .yas-setup.el 2016-05-09 17:26:37 -04:00
c-mode Deleted fopen snippet from c-mode 2015-06-04 17:39:42 -03:00
cc-mode remove extra newline referencing #122 2016-01-31 17:46:55 +00:00
chef-mode added machine for chef-provisioning 2015-01-28 16:02:23 -06:00
clojure-mode import a few clojure and elixir snippets 2015-03-22 21:29:40 +00: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 fix conditions to work with newest yasnippet 2016-01-07 13:02:24 +01:00
elixir-mode Add elixir IEx.pry snippet 2016-05-04 16:29:16 -05:00
emacs-lisp-mode Add defconst for elisp. 2016-04-05 00:32:04 -04: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
fundamental-mode remove snippets in fundamdental-mode, leaving the directory just to not 2014-09-05 10:08:00 +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 fixes #124 2016-02-11 12:57:03 +00: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 Merge pull request #105 from joeheyming/master 2016-01-13 14:52:19 +00: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 remove a few contributor settings 2011-12-11 19:05:59 +00: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 remove unnecessary snippet closing #110 2016-01-23 13:19:19 +00:00
perl-mode Bring perl-mode back from yasnippet 0.8.0 2014-08-31 14:45:43 +08:00
prog-mode prog-mode/fixme: disable on sh-mode 2015-01-30 13:48:20 +00:00
python-mode Remove compiler warning 2016-04-29 13:33:46 -06:00
rst-mode Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04:00
ruby-mode Ruby: Replace all file-name underscores when creating module name. 2016-04-21 13:22:18 -07: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 Split text snippets into prog and fundamental 2014-05-31 17:19:06 -04: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
udev-mode add a js-mode directory and more python scripts 2011-10-08 16:38:06 +01: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
cider-repl-mode new link 2015-04-13 20:56:33 +01:00
CONTRIBUTORS.txt add contributors file 2013-12-11 20:43:44 +00:00
enh-ruby-mode add enhanced-ruby-mode alias 2014-08-21 16:12:50 -03:00
ensime-mode new pythoon 2012-03-12 21:06:46 +00:00
js2-mode use a symlink instead of yas-parents for equivalent modes 2015-04-09 17:12:11 +01:00
js3-mode js3-mode support, closes #123 2016-03-06 19:23:09 +00:00
LICENSE Update LICENSE 2014-05-17 17:06:04 +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
typerex-mode fixes #29 2014-04-17 18:44:06 +01:00
web-mode Add symlink for web-mode to html-mode 2015-12-31 14:20:46 +05:30

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.