diff options
Diffstat (limited to '.emacs.d/snippets/python-mode.statnett')
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/classmethod | 10 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/cls | 8 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/dec | 14 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/function | 8 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/import | 7 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/method | 7 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/not_impl | 2 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/pass | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/property_getter | 3 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/property_setter | 2 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/scls | 7 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/script | 4 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/selfassign | 2 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/while | 7 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/with | 7 |
15 files changed, 6 insertions, 87 deletions
diff --git a/.emacs.d/snippets/python-mode.statnett/classmethod b/.emacs.d/snippets/python-mode.statnett/classmethod deleted file mode 100644 index aa78440..0000000 --- a/.emacs.d/snippets/python-mode.statnett/classmethod +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: classmethod | ||
| 3 | # key: cm | ||
| 4 | # group: object oriented | ||
| 5 | # -- | ||
| 6 | @classmethod | ||
| 7 | def ${1:meth}(cls, $2): | ||
| 8 | """ | ||
| 9 | """ | ||
| 10 | $3 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/cls b/.emacs.d/snippets/python-mode.statnett/cls deleted file mode 100644 index 3dbd391..0000000 --- a/.emacs.d/snippets/python-mode.statnett/cls +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: cls | ||
| 3 | # key: cls | ||
| 4 | # group: object oriented | ||
| 5 | # -- | ||
| 6 | class ${1:class}(${2:object}): | ||
| 7 | """""" | ||
| 8 | $0 | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/dec b/.emacs.d/snippets/python-mode.statnett/dec deleted file mode 100644 index b22c9e9..0000000 --- a/.emacs.d/snippets/python-mode.statnett/dec +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: dec | ||
| 3 | # key: dec | ||
| 4 | # group : definitions | ||
| 5 | # -- | ||
| 6 | def ${1:decorator}(func): | ||
| 7 | $2 | ||
| 8 | def _$1(*args, **kwargs): | ||
| 9 | $3 | ||
| 10 | ret = func(*args, **kwargs) | ||
| 11 | $4 | ||
| 12 | return ret | ||
| 13 | |||
| 14 | return _$1 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/function b/.emacs.d/snippets/python-mode.statnett/function deleted file mode 100644 index 5a39d8f..0000000 --- a/.emacs.d/snippets/python-mode.statnett/function +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: function | ||
| 3 | # key: fn | ||
| 4 | # group: definitions | ||
| 5 | # -- | ||
| 6 | def ${1:fun}(${2:args}): | ||
| 7 | """""" | ||
| 8 | $0 | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/import b/.emacs.d/snippets/python-mode.statnett/import deleted file mode 100644 index f34bc39..0000000 --- a/.emacs.d/snippets/python-mode.statnett/import +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: import | ||
| 3 | # key: imp | ||
| 4 | # group : general | ||
| 5 | # -- | ||
| 6 | import ${1:lib}${2: as ${3:alias}} | ||
| 7 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/method b/.emacs.d/snippets/python-mode.statnett/method deleted file mode 100644 index 985ef0c..0000000 --- a/.emacs.d/snippets/python-mode.statnett/method +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: method | ||
| 3 | # key: m | ||
| 4 | # group: object oriented | ||
| 5 | # -- | ||
| 6 | def ${1:method}(self${2:, $3}): | ||
| 7 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/not_impl b/.emacs.d/snippets/python-mode.statnett/not_impl index 515e353..97a6cb0 100644 --- a/.emacs.d/snippets/python-mode.statnett/not_impl +++ b/.emacs.d/snippets/python-mode.statnett/not_impl | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | 1 | # -*- mode: snippet -*- |
| 2 | # name: not_impl | 2 | # name: not_impl |
| 3 | # key: not_impl | 3 | # key: ni |
| 4 | # -- | 4 | # -- |
| 5 | raise NotImplementedError \ No newline at end of file | 5 | raise NotImplementedError \ No newline at end of file |
diff --git a/.emacs.d/snippets/python-mode.statnett/pass b/.emacs.d/snippets/python-mode.statnett/pass deleted file mode 100644 index 4734f7f..0000000 --- a/.emacs.d/snippets/python-mode.statnett/pass +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: pass | ||
| 3 | # key: ps | ||
| 4 | # -- | ||
| 5 | pass \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/property_getter b/.emacs.d/snippets/python-mode.statnett/property_getter index 8bb99dd..408428a 100644 --- a/.emacs.d/snippets/python-mode.statnett/property_getter +++ b/.emacs.d/snippets/python-mode.statnett/property_getter | |||
| @@ -7,5 +7,4 @@ | |||
| 7 | def ${1:name}(self): | 7 | def ${1:name}(self): |
| 8 | """$1-property""" | 8 | """$1-property""" |
| 9 | return self.${2:value} | 9 | return self.${2:value} |
| 10 | 10 | $0 \ No newline at end of file | |
| 11 | $0 | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/property_setter b/.emacs.d/snippets/python-mode.statnett/property_setter index a74be67..aa0288d 100644 --- a/.emacs.d/snippets/python-mode.statnett/property_setter +++ b/.emacs.d/snippets/python-mode.statnett/property_setter | |||
| @@ -12,4 +12,4 @@ def ${1:name}(self): | |||
| 12 | def $1(self, value): | 12 | def $1(self, value): |
| 13 | """$1-property setter""" | 13 | """$1-property setter""" |
| 14 | self.$2 = value | 14 | self.$2 = value |
| 15 | $0 | 15 | $0 \ No newline at end of file |
diff --git a/.emacs.d/snippets/python-mode.statnett/scls b/.emacs.d/snippets/python-mode.statnett/scls deleted file mode 100644 index 4a10e28..0000000 --- a/.emacs.d/snippets/python-mode.statnett/scls +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: subclass | ||
| 3 | # key: scls | ||
| 4 | # group: object oriented | ||
| 5 | # -- | ||
| 6 | class ${1:class}(${2:super-class}): | ||
| 7 | $0 | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/script b/.emacs.d/snippets/python-mode.statnett/script index 3246334..2e8cc35 100644 --- a/.emacs.d/snippets/python-mode.statnett/script +++ b/.emacs.d/snippets/python-mode.statnett/script | |||
| @@ -3,12 +3,12 @@ | |||
| 3 | # key: script | 3 | # key: script |
| 4 | # -- | 4 | # -- |
| 5 | #!/usr/bin/env python | 5 | #!/usr/bin/env python |
| 6 | # -*- coding: utf-8 -*- | ||
| 6 | 7 | ||
| 7 | 8 | ||
| 8 | def main(inargs=None): | 9 | def main(inargs=None): |
| 9 | """main entry point""" | 10 | """main entry point""" |
| 10 | $0 | 11 | $0 |
| 11 | 12 | ||
| 12 | 13 | if __name__ == '__main__': | |
| 13 | if __name__ == "__main__": | ||
| 14 | main() | 14 | main() |
diff --git a/.emacs.d/snippets/python-mode.statnett/selfassign b/.emacs.d/snippets/python-mode.statnett/selfassign index 95d7b2b..efdfaa0 100644 --- a/.emacs.d/snippets/python-mode.statnett/selfassign +++ b/.emacs.d/snippets/python-mode.statnett/selfassign | |||
| @@ -3,4 +3,4 @@ | |||
| 3 | # key: sn | 3 | # key: sn |
| 4 | # group: object oriented | 4 | # group: object oriented |
| 5 | # -- | 5 | # -- |
| 6 | self.$1 = $1 \ No newline at end of file | 6 | self._$1 = $1 \ No newline at end of file |
diff --git a/.emacs.d/snippets/python-mode.statnett/while b/.emacs.d/snippets/python-mode.statnett/while deleted file mode 100644 index 7b3539c..0000000 --- a/.emacs.d/snippets/python-mode.statnett/while +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: while | ||
| 3 | # key: wh | ||
| 4 | # group: control structure | ||
| 5 | # -- | ||
| 6 | while ${1:True}: | ||
| 7 | $0 \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/python-mode.statnett/with b/.emacs.d/snippets/python-mode.statnett/with deleted file mode 100644 index 7fcbd38..0000000 --- a/.emacs.d/snippets/python-mode.statnett/with +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: with | ||
| 3 | # key: with | ||
| 4 | # group : control structure | ||
| 5 | # -- | ||
| 6 | with ${1:expr}${2: as ${3:alias}}: | ||
| 7 | $0 \ No newline at end of file | ||
