references pull requrest #81 adding more information about HTML snippets

This commit is contained in:
Andrea Crotti 2015-03-22 21:16:39 +00:00
parent 41abaca2d9
commit 2baa8f24e7
2 changed files with 17 additions and 17 deletions

View File

@ -3,15 +3,17 @@ This repository contains the official snippets for [yasnippet](http://github.com
# How to install
1. install yasnippet
2. clone this repository
3. add to your .emacs the following
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/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).
3. M-x yas/reload-all to activate them
# Contributing
@ -25,3 +27,12 @@ which will gave a table representation of all the snippets available in the curr
# 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:
https://github.com/AndreaCrotti/yasnippet-snippets/pull/49
To 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.

View File

@ -1,11 +0,0 @@
#name : <dov...>...</dov>
# --
a mirror up here $3
<dov ${1:id="${2:some_id and here comes another nested field: ${3:nested_shit}}"}>
$0
</dov>
<dov $1>
actually some other shit and $3
</dov>