Skip to content

kchenphy/yasnippet-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yasnippet official snippet collections

Gratipay

MELPA

Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets This repository contains the official collection of snippets for yasnippet.

How to install

From melpa

You can install this package from melpa, first by ensuring you have it source of your pacages.

(require 'package)
(add-to-list 'package-archives
             '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)

Once that is done just refresh the packages andd install with.

  • M-x package-refresh-contents
  • M-x package-install yasnippet-snippets

Once that is done all the snippets will load automatically as soon as yasnippet loads.

Contributing

So if you have any useful snippets for any language or framework please feel free to contribute, by opening a PR or an issue if you have any suggestions.

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

  • Emacs Lisp 60.0%
  • Roff 33.8%
  • C 4.2%
  • HTML 2.0%