rinconjc / yasnippet-snippets

a collection of yasnippet snippets for many languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yasnippet official snippet collections

This repository contains the official snippets for yasnippet, as you can see from the git submodules link.

How to install

  1. install yasnippet

  2. clone this repository

  3. add to your .emacs the following

    • (add-to-list 'yas/root-directory "$DIRECTORY_WHERE_YOU_CLONED")
    • (yas/initialize)
  4. M-x yas/reload-all to activate them

Alternatively run a git submodule update after you check out yasnippet (which however might be a bit behind the version in master).

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.

About

a collection of yasnippet snippets for many languages

License:MIT License


Languages

Language:Perl 25.9%Language:Prolog 16.7%Language:Groff 13.9%Language:Shell 8.8%Language:Python 6.6%Language:Emacs Lisp 6.5%Language:Ruby 5.4%Language:JavaScript 3.9%Language:PHP 3.6%Language:R 2.7%Language:Erlang 2.1%Language:C 1.7%Language:Nu 1.0%Language:HTML 0.8%Language:Groovy 0.3%