Permalink
Browse files

Updated snippets.

  • Loading branch information...
1 parent f58908c commit 90ece59744c12dcc9ce937957582e81b5b08f82e @alfredo committed Mar 9, 2013
View
@@ -1,5 +1,5 @@
;; yas config
-(setq yas/snippet-dirs (concat user-emacs-directory
- (convert-standard-filename "plugins/")))
-(setq yas/prompt-functions '(yas/dropdown-prompt))
-(yas-global-mode)
+(require 'yasnippet)
+(setq yas-snippet-dirs `(,(concat user-emacs-directory (convert-standard-filename "snippets"))))
+(setq yas/prompt-functions '(yas/ido-prompt))
+(yas-global-mode 1)
@@ -3,5 +3,6 @@
# key: article
# --
<article>
-$0
-</article>
+ $1
+</article>
+$0
@@ -1,7 +0,0 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
-# name: <div id="...">...</div>
-# key: div
-# --
-<div id="$1">
- $0
-</div>
@@ -1,5 +0,0 @@
-# contributor: Alfredo Aguirre madewithbyt.es
-# name: Doctype HTML 4.01 Strict
-# key: doctype
-# --
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
@@ -1,12 +0,0 @@
-# name: <dov...>...</dov>
-# key: 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>
@@ -2,6 +2,6 @@
#name :<form method="..." id="..." action="..."></form>
# key: form
# --
-<form method="${1:post}" id="form-$2-id" action="$3">
+<form method="${1:post}" action="$2">
$0
</form>
@@ -3,5 +3,5 @@
# key: head
# --
<head>
- $0
+ $1
</head>
@@ -1,5 +1,6 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
+# contributor: Alfredo Aguirre madewithbyt.es
# name: <h1>...</h1>
# key: h1
# --
-<h1>$1</h1>
+<h1>$1</h1>
+$0
@@ -1,5 +1,6 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
+# contributor: Alfredo Aguirre madewithbyt.es
# name: <h2>...</h2>
# key: h2
# --
-<h2>$1</h2>
+<h2>$1</h2>
+$0
@@ -1,5 +1,6 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
+# contributor: Alfredo Aguirre madewithbyt.es
# name: <h3>...</h3>
# key: h3
# --
-<h3>$1</h3>
+<h3>$1</h3>
+$0
@@ -1,5 +1,6 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
+# contributor: Alfredo Aguirre madewithbyt.es
# name: <h4>...</h4>
# key: h4
# --
-<h4>$1</h4>
+<h4>$1</h4>
+$0
@@ -1,5 +1,6 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
+# contributor: Alfredo Aguirre madewithbyt.es
# name: <h5>...</h5>
# key: h5
# --
-<h5>$1</h5>
+<h5>$1</h5>
+$0
@@ -1,5 +1,6 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
+# contributor: Alfredo Aguirre madewithbyt.es
# name: <h6>...</h6>
# key: h6
# --
-<h6>$1</h6>
+<h6>$1</h6>
+$0
@@ -1,5 +0,0 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
-# name: <hr />
-# key: hr
-# --
-<hr />
@@ -1,7 +0,0 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
-# name: <html xmlns="...">...</html>
-# key: html
-# --
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${1:en}" lang="${2:en}">
- $0
-</html>
@@ -3,5 +3,6 @@
# key: if
# --
{% if $1 %}
- $0
+ $2
{% endif %}
+$0
@@ -2,4 +2,4 @@
# name: <img src="..." alt="..." />
# key: img
# --
-<img src="$1" alt="$2" />
+<img src="$1" alt="$2" $3/>$0
@@ -2,4 +2,4 @@
# name: <input ... />
# key: input
# --
-<input type="$1" name="$2" value="$3" />
+<input type="$1" name="$2" />$0
@@ -2,4 +2,4 @@
# name: <label />
# key: label
# --
-<label for="$1">$0</label>
+<label for="$1">$2</label>$0
@@ -1,7 +0,0 @@
-# contributor: Rodrigo Setti <rodrigosetti@gmail.com>
-# name: <dl> ... </dl>
-# key: dl
-# --
-<dl id="$1">
- $0
-</dl>
@@ -2,4 +2,5 @@
# name: <li>...</li>
# key: li
# --
-<li>$1</li>
+<li$2>$1</li>
+$0
@@ -1,5 +0,0 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
-# name: <li class="...">...</li>
-# key: li
-# --
-<li class="$1">$2</li>
@@ -1,7 +0,0 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
-# name: <ol class="...">...</ol>
-# key: ol
-# --
-<ol class="$1">
- $0
-</ol>
@@ -1,7 +0,0 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
-# name: <ol id="...">...</ol>
-# key: ol
-# --
-<ol id="$1">
- $0
-</ol>
@@ -2,6 +2,6 @@
# name: <ul>...</ul>
# key: ul
# --
-<ul>
+<ul$1>
$0
</ul>
@@ -1,7 +0,0 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
-# name: <ul class="...">...</ul>
-# key: ul
-# --
-<ul class="$1">
- $0
-</ul>
@@ -2,4 +2,4 @@
# name: <a href="mailto:...@...">...</a>
# key: mailto
# --
-<a href="mailto:$1@$2">$0</a>
+<a href="mailto:$1">$2</a>$0
@@ -1,4 +0,0 @@
-# name: Doctype HTML 4.01 Strict
-# key: doctype
-# --
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
@@ -1,4 +0,0 @@
-# name: DocType XHTML 1.0 frameset
-# key: doctype
-# --
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
@@ -1,4 +0,0 @@
-# name: DocType XHTML 1.1
-# key: doctype
-# --
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -1,4 +0,0 @@
-# name: DocType XHTML 1.0 Strict
-# key: doctype
-# --
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -1,4 +0,0 @@
-# name: DocType XHTML 1.0 Transitional
-# key: doctype
-# --
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -1,5 +1,5 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
+# contributor: Alfredo Aguirre madewithbyt.es
# name: <meta name="..." content="..." />
# key: meta
# --
-<meta name="${1:generator}" content="${2:content}" />
+<meta name="$1" content="$2" />
@@ -1,5 +1,6 @@
# contributor: Alfredo Aguirre madewithbyt.es
-# name:<option value="">...</option>
+# name:<option value="">...</option>
# key: option
# --
-<option value="$1">$0</option>
+<option value="$2">$1</option>
+$0
@@ -1,5 +1,6 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
+# contributor: Alfredo Aguirre madewithbyt.es
# name: <p>...</p>
# key: p
# --
-<p>$1</p>
+<p>$1</p>
+$0
@@ -4,4 +4,5 @@
# --
<blockquote>
$1
-</blockquote>
+</blockquote>
+$0
@@ -3,5 +3,5 @@
# key: section
# --
<section>
-$0
+ $0
</section>
@@ -1,5 +0,0 @@
-# contributor: Jimmy Wu <frozenthrone88@gmail.com>
-# name: <span>...</span>
-# key: span
-# --
-<span>$1</span>

0 comments on commit 90ece59

Please sign in to comment.