diff options
Diffstat (limited to '.emacs.d/snippets/html-mode')
| -rw-r--r-- | .emacs.d/snippets/html-mode/django_for | 6 | ||||
| -rw-r--r-- | .emacs.d/snippets/html-mode/django_if | 4 | ||||
| -rw-r--r-- | .emacs.d/snippets/html-mode/django_ife | 2 | ||||
| -rw-r--r-- | .emacs.d/snippets/html-mode/django_translate | 2 | ||||
| -rw-r--r-- | .emacs.d/snippets/html-mode/django_url | 2 | ||||
| -rw-r--r-- | .emacs.d/snippets/html-mode/django_var | 5 |
6 files changed, 14 insertions, 7 deletions
diff --git a/.emacs.d/snippets/html-mode/django_for b/.emacs.d/snippets/html-mode/django_for index 7982638..41ad68f 100644 --- a/.emacs.d/snippets/html-mode/django_for +++ b/.emacs.d/snippets/html-mode/django_for | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | 1 | # -*- mode: snippet -*- |
| 2 | #name: django-for | 2 | #name: django-for |
| 3 | #key: dj_for | 3 | #key: for |
| 4 | # -- | 4 | # -- |
| 5 | {% for ${1:condition} %}$0{% endfor %} \ No newline at end of file | 5 | {%for ${1:condition} %} |
| 6 | $0 | ||
| 7 | {%endfor%} \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/html-mode/django_if b/.emacs.d/snippets/html-mode/django_if index a356c35..6ad562d 100644 --- a/.emacs.d/snippets/html-mode/django_if +++ b/.emacs.d/snippets/html-mode/django_if | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | 1 | # -*- mode: snippet -*- |
| 2 | #name: django-if | 2 | #name: django-if |
| 3 | #key: dj_if | 3 | #key: if |
| 4 | # -- | 4 | # -- |
| 5 | {% if ${1:condition} %}$0{% endif %} \ No newline at end of file | 5 | {%if ${1:condition} %}$0{%endif%} \ No newline at end of file |
diff --git a/.emacs.d/snippets/html-mode/django_ife b/.emacs.d/snippets/html-mode/django_ife index 8b896b1..7d64b19 100644 --- a/.emacs.d/snippets/html-mode/django_ife +++ b/.emacs.d/snippets/html-mode/django_ife | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | 1 | # -*- mode: snippet -*- |
| 2 | #name: django-ifelse | 2 | #name: django-ifelse |
| 3 | #key: dj_ife | 3 | #key: ife |
| 4 | # -- | 4 | # -- |
| 5 | {%if ${1:condition} %}$0{%else%}{%endif%} \ No newline at end of file | 5 | {%if ${1:condition} %}$0{%else%}{%endif%} \ No newline at end of file |
diff --git a/.emacs.d/snippets/html-mode/django_translate b/.emacs.d/snippets/html-mode/django_translate index 9f11b2e..22dbc0c 100644 --- a/.emacs.d/snippets/html-mode/django_translate +++ b/.emacs.d/snippets/html-mode/django_translate | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | 1 | # -*- mode: snippet -*- |
| 2 | #name: django-translate | 2 | #name: django-translate |
| 3 | #key: dj_tr | 3 | #key: tr |
| 4 | # -- | 4 | # -- |
| 5 | {%trans "$0" %} \ No newline at end of file | 5 | {%trans "$0" %} \ No newline at end of file |
diff --git a/.emacs.d/snippets/html-mode/django_url b/.emacs.d/snippets/html-mode/django_url index 846b8fb..525385f 100644 --- a/.emacs.d/snippets/html-mode/django_url +++ b/.emacs.d/snippets/html-mode/django_url | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | 1 | # -*- mode: snippet -*- |
| 2 | #name: django-url | 2 | #name: django-url |
| 3 | #key: dj_u | 3 | #key: url |
| 4 | # -- | 4 | # -- |
| 5 | {%url $0 %} \ No newline at end of file | 5 | {%url $0 %} \ No newline at end of file |
diff --git a/.emacs.d/snippets/html-mode/django_var b/.emacs.d/snippets/html-mode/django_var new file mode 100644 index 0000000..90a685f --- /dev/null +++ b/.emacs.d/snippets/html-mode/django_var | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | #name: django-variable | ||
| 3 | #key: v | ||
| 4 | # -- | ||
| 5 | {{ $0 }} \ No newline at end of file | ||
