summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/snippets/html-mode
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-08-21 00:23:56 +0200
committerGravatar Tom Willemse2014-08-21 00:23:56 +0200
commitc2778f0f713cc885087d6302196e421596ff248e (patch)
treef289c9e52bcaa6dd1ef7b64343df78492a36141d /emacs/.emacs.d/snippets/html-mode
parent05415b9b2c455fb5e5f2521610b9d7dd33385d21 (diff)
downloaddotfiles-c2778f0f713cc885087d6302196e421596ff248e.tar.gz
dotfiles-c2778f0f713cc885087d6302196e421596ff248e.zip
Add Emacs config
Diffstat (limited to 'emacs/.emacs.d/snippets/html-mode')
-rw-r--r--emacs/.emacs.d/snippets/html-mode/block7
-rw-r--r--emacs/.emacs.d/snippets/html-mode/for8
-rw-r--r--emacs/.emacs.d/snippets/html-mode/generic-block8
-rw-r--r--emacs/.emacs.d/snippets/html-mode/script5
-rw-r--r--emacs/.emacs.d/snippets/html-mode/trans-with-cap6
5 files changed, 34 insertions, 0 deletions
diff --git a/emacs/.emacs.d/snippets/html-mode/block b/emacs/.emacs.d/snippets/html-mode/block
new file mode 100644
index 0000000..6510011
--- /dev/null
+++ b/emacs/.emacs.d/snippets/html-mode/block
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: block
+# key: block
+# --
+{% block $1 %}
+ $0
+{% endblock %} \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/html-mode/for b/emacs/.emacs.d/snippets/html-mode/for
new file mode 100644
index 0000000..01d9c44
--- /dev/null
+++ b/emacs/.emacs.d/snippets/html-mode/for
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# condition: pony-tpl-minor-mode
+# --
+{% for $1 in $2 %}
+ $0
+{% endfor %} \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/html-mode/generic-block b/emacs/.emacs.d/snippets/html-mode/generic-block
new file mode 100644
index 0000000..82d40c7
--- /dev/null
+++ b/emacs/.emacs.d/snippets/html-mode/generic-block
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: Template Block
+# key: %
+# condition: pony-tpl-minor-mode
+# --
+{% $1 %}
+ $0
+{% end$1 %} \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/html-mode/script b/emacs/.emacs.d/snippets/html-mode/script
new file mode 100644
index 0000000..e50dbf5
--- /dev/null
+++ b/emacs/.emacs.d/snippets/html-mode/script
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: script
+# key: script
+# --
+<script src="$1" type="${2:text/javascript}" language="${3:javascript}"></script> \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/html-mode/trans-with-cap b/emacs/.emacs.d/snippets/html-mode/trans-with-cap
new file mode 100644
index 0000000..4f20a33
--- /dev/null
+++ b/emacs/.emacs.d/snippets/html-mode/trans-with-cap
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: trans with cap
+# key: trans
+# condition: pony-tpl-minor-mode
+# --
+{% trans "$1"|capfirst %} \ No newline at end of file