Skip to content

hpestano/yasnippet-snippets

This branch is 539 commits behind AndreaCrotti/yasnippet-snippets:master.

Folders and files

NameName
Last commit message
Last commit date
Dec 11, 2011
May 31, 2014
Jul 5, 2015
Jun 4, 2015
Jan 31, 2016
Jan 28, 2015
Mar 22, 2015
Jan 12, 2016
Dec 11, 2011
Aug 31, 2014
Dec 11, 2011
Jan 7, 2014
Dec 10, 2014
Jan 7, 2016
Mar 22, 2015
Jan 31, 2016
Dec 11, 2011
Nov 3, 2011
Jun 3, 2015
Sep 5, 2014
May 31, 2014
Jan 22, 2016
May 31, 2014
Dec 3, 2015
Jan 25, 2016
Dec 13, 2014
Jan 13, 2016
Apr 23, 2015
Dec 11, 2011
Jan 20, 2015
Dec 11, 2011
Dec 11, 2011
Dec 11, 2011
Dec 11, 2011
Oct 4, 2015
Sep 29, 2015
Dec 13, 2014
May 18, 2015
May 31, 2014
Feb 23, 2014
May 31, 2014
Aug 24, 2014
Dec 11, 2011
Jan 23, 2016
Aug 31, 2014
Jan 30, 2015
Jul 28, 2015
May 31, 2014
Jan 16, 2016
Aug 8, 2015
Nov 21, 2014
May 11, 2014
May 31, 2014
May 31, 2014
May 31, 2014
Oct 8, 2011
May 31, 2014
Oct 3, 2014
Oct 4, 2014
Dec 11, 2013
May 17, 2014
Sep 22, 2015
Apr 13, 2015
Aug 21, 2014
Mar 12, 2012
Apr 9, 2015
Jul 7, 2011
Apr 17, 2014
Dec 31, 2015

Repository files navigation

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: AndreaCrotti#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.

About

a collection of yasnippet snippets for many languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Roff 52.2%
  • Emacs Lisp 24.4%
  • Python 13.8%
  • C 6.5%
  • HTML 3.1%