Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AndreaCrotti/yasnippet-snippets
a collection of yasnippet snippets for many languages
https://github.com/AndreaCrotti/yasnippet-snippets
emacs emacs-lisp yasnippet
Last synced: 4 days ago
JSON representation
a collection of yasnippet snippets for many languages
- Host: GitHub
- URL: https://github.com/AndreaCrotti/yasnippet-snippets
- Owner: AndreaCrotti
- License: gpl-3.0
- Created: 2010-09-16T13:15:29.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T09:49:33.000Z (about 1 month ago)
- Last Synced: 2024-10-29T15:43:18.446Z (15 days ago)
- Topics: emacs, emacs-lisp, yasnippet
- Language: YASnippet
- Homepage:
- Size: 1.4 MB
- Stars: 1,167
- Watchers: 35
- Forks: 463
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yasnippet official snippet collections
[![MELPA Stable](https://stable.melpa.org/packages/yasnippet-snippets-badge.svg)](https://stable.melpa.org/#/yasnippet-snippets)
[![NonGNU ELPA](https://elpa.nongnu.org/nongnu/yasnippet-snippets.svg)](https://elpa.nongnu.org/nongnu/yasnippet-snippets.svg)
[![MELPA](https://melpa.org/packages/yasnippet-snippets-badge.svg)](https://melpa.org/#/yasnippet-snippets)This repository contains the official collection of snippets for [yasnippet](http://github.com/capitaomorte/yasnippet).
# How to install
## From melpa
You can install this package from melpa, by first ensuring that you have the melpa source in your package-archives.
```lisp
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
```Once that is done, then just refresh the packages and install it with.
* M-x package-refresh-contents
* M-x package-install yasnippet-snippetsNow all the snippets will load automatically, as soon as yasnippet loads.
## On Debian ≥10 and derivatives such as Ubuntu ≥ 18.10
`sudo apt install elpa-yasnippet-snippets`
# Contributing
If you have any useful snippets for any language or framework, then please feel free to contribute, by opening a PR or an issue if you have any suggestions.
To study the current snippets, I suggest that you use `M-x yas-describe-tables`,
which will show a table representation of all the snippets that are 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 sometimes were useful, but I came to the conclusion that yasnippet was not the right tool for them, so they were removed in this pull request:
https://github.com/AndreaCrotti/yasnippet-snippets/pull/49To everyone writing a lot of HTML I suggest using [emmet mode](https://github.com/smihica/emmet-mode) instead, which is a much more powerful mode for writing HTML tags.