Added snippets for Emacs
This commit is contained in:
5
emacs/.emacs.d/snippets/web-mode/a
Normal file
5
emacs/.emacs.d/snippets/web-mode/a
Normal file
@@ -0,0 +1,5 @@
|
||||
#name : a
|
||||
# --
|
||||
<a href="$1">
|
||||
$0
|
||||
</a>
|
||||
5
emacs/.emacs.d/snippets/web-mode/div
Normal file
5
emacs/.emacs.d/snippets/web-mode/div
Normal file
@@ -0,0 +1,5 @@
|
||||
#name : div
|
||||
# --
|
||||
<div class="$1">
|
||||
$0
|
||||
</div>
|
||||
5
emacs/.emacs.d/snippets/web-mode/divv
Normal file
5
emacs/.emacs.d/snippets/web-mode/divv
Normal file
@@ -0,0 +1,5 @@
|
||||
#name : divv
|
||||
# --
|
||||
<div class="{{ $1 }}">
|
||||
$0
|
||||
</div>
|
||||
5
emacs/.emacs.d/snippets/web-mode/for
Normal file
5
emacs/.emacs.d/snippets/web-mode/for
Normal file
@@ -0,0 +1,5 @@
|
||||
#name : for
|
||||
# --
|
||||
{% for $1 in $2 %}
|
||||
$0
|
||||
{% endfor %}
|
||||
4
emacs/.emacs.d/snippets/web-mode/h1
Normal file
4
emacs/.emacs.d/snippets/web-mode/h1
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : h1
|
||||
# --
|
||||
<h1>$1</h1>
|
||||
$0
|
||||
4
emacs/.emacs.d/snippets/web-mode/h2
Normal file
4
emacs/.emacs.d/snippets/web-mode/h2
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : h2
|
||||
# --
|
||||
<h2>$1</h2>
|
||||
$0
|
||||
4
emacs/.emacs.d/snippets/web-mode/h3
Normal file
4
emacs/.emacs.d/snippets/web-mode/h3
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : h3
|
||||
# --
|
||||
<h3>$1</h3>
|
||||
$0
|
||||
4
emacs/.emacs.d/snippets/web-mode/h4
Normal file
4
emacs/.emacs.d/snippets/web-mode/h4
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : h4
|
||||
# --
|
||||
<h4>$1</h4>
|
||||
$0
|
||||
5
emacs/.emacs.d/snippets/web-mode/if
Normal file
5
emacs/.emacs.d/snippets/web-mode/if
Normal file
@@ -0,0 +1,5 @@
|
||||
#name : if
|
||||
# --
|
||||
{% if $1 %}
|
||||
$0
|
||||
{% endif %}
|
||||
3
emacs/.emacs.d/snippets/web-mode/img
Normal file
3
emacs/.emacs.d/snippets/web-mode/img
Normal file
@@ -0,0 +1,3 @@
|
||||
#name : img
|
||||
# --
|
||||
<img src="$1" alt="$2"/>
|
||||
3
emacs/.emacs.d/snippets/web-mode/incl
Normal file
3
emacs/.emacs.d/snippets/web-mode/incl
Normal file
@@ -0,0 +1,3 @@
|
||||
#name : incl
|
||||
# --
|
||||
{% include "$1" %}
|
||||
13
emacs/.emacs.d/snippets/web-mode/itemthumb
Normal file
13
emacs/.emacs.d/snippets/web-mode/itemthumb
Normal file
@@ -0,0 +1,13 @@
|
||||
#name : itemthumb
|
||||
# --
|
||||
<a href="{{ data.byhref[item.href].links.alternate[0].href }}">
|
||||
{% if data.byhref[item.href].links.thumbnail[0] %}
|
||||
<img
|
||||
src="{{ data.byhref[item.href].links.thumbnail[0].href }}"
|
||||
alt="thumbnail for {{ item.title }}"
|
||||
/>
|
||||
<br/>
|
||||
{% endif %}
|
||||
{{ item.title }}
|
||||
</a>
|
||||
$0
|
||||
4
emacs/.emacs.d/snippets/web-mode/linkcss
Normal file
4
emacs/.emacs.d/snippets/web-mode/linkcss
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : linkcss
|
||||
# --
|
||||
<link rel="stylesheet" type="text/css" href="$1"/>
|
||||
$0
|
||||
5
emacs/.emacs.d/snippets/web-mode/p
Normal file
5
emacs/.emacs.d/snippets/web-mode/p
Normal file
@@ -0,0 +1,5 @@
|
||||
#name : p
|
||||
# --
|
||||
<p>
|
||||
$0
|
||||
</p>
|
||||
5
emacs/.emacs.d/snippets/web-mode/style
Normal file
5
emacs/.emacs.d/snippets/web-mode/style
Normal file
@@ -0,0 +1,5 @@
|
||||
#name : style
|
||||
# --
|
||||
<style type="text/css">
|
||||
$0
|
||||
</style>
|
||||
5
emacs/.emacs.d/snippets/web-mode/with
Normal file
5
emacs/.emacs.d/snippets/web-mode/with
Normal file
@@ -0,0 +1,5 @@
|
||||
#name : with
|
||||
# --
|
||||
{% with $1 = $2 %}
|
||||
$0
|
||||
{% endwith %}
|
||||
3
emacs/.emacs.d/snippets/web-mode/{{
Normal file
3
emacs/.emacs.d/snippets/web-mode/{{
Normal file
@@ -0,0 +1,3 @@
|
||||
#name : =
|
||||
# --
|
||||
{{ $0 }}
|
||||
Reference in New Issue
Block a user