summaryrefslogtreecommitdiffstats
path: root/emacs/snippets/python-mode/form
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-02-17 23:09:24 +0100
committerGravatar Tom Willemsen2013-02-17 23:09:33 +0100
commita281f040cd35dffe171d5b7d6b00fe03163be6a0 (patch)
tree744e2d8aeaed2aca087a1c1cbc3e9791644e973d /emacs/snippets/python-mode/form
parent50ab6deeabf2769ed3c4ff67385fae768ff41ee2 (diff)
downloaddotfiles-a281f040cd35dffe171d5b7d6b00fe03163be6a0.tar.gz
dotfiles-a281f040cd35dffe171d5b7d6b00fe03163be6a0.zip
Move .emacs.d to emacs
Since it's no longer placed directly in the home directory it doesn't need to be named exacly the same.
Diffstat (limited to 'emacs/snippets/python-mode/form')
-rw-r--r--emacs/snippets/python-mode/form9
1 files changed, 9 insertions, 0 deletions
diff --git a/emacs/snippets/python-mode/form b/emacs/snippets/python-mode/form
new file mode 100644
index 0000000..225d5e4
--- /dev/null
+++ b/emacs/snippets/python-mode/form
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: Model Form
+# key: form
+# --
+class ${1:Model}Form(forms.ModelForm):
+ '''Form for the $1 model.'''
+
+ class Meta:
+ model = $1 \ No newline at end of file