tuhdo / yasnippet-snippets

a collection of yasnippet snippets for many languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In this repository there is a colletion of my personal yasnippet snippets for many different Emacs modes.

How to use

  1. install yasnippet
  2. add to your .emacs the following
    • (add-to-list 'yas/root-directory "$DIRECTORY_WHERE_YOU_CLONED")
    • (yas/initialize)
  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.

About

a collection of yasnippet snippets for many languages

License:MIT License


Languages

Language:Perl 33.8%Language:Prolog 20.0%Language:Python 7.9%Language:Emacs Lisp 7.8%Language:Ruby 7.1%Language:Shell 6.0%Language:JavaScript 5.8%Language:PHP 4.3%Language:R 3.3%Language:Erlang 2.6%Language:Nu 1.2%Language:Groovy 0.4%