summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode.statnett
diff options
context:
space:
mode:
authorSimeon Simeonov2021-02-20 21:03:18 +0100
committerSimeon Simeonov2021-02-20 21:03:18 +0100
commit7a3b877abecb9b2f8ee1200bd2617202b325acd1 (patch)
tree73cc0652375957c505795a07171c9330d4b0b95b /.emacs.d/snippets/python-mode.statnett
parent31884d136fe18e402f8d1c83d68c005671a767c5 (diff)
Update markdown-mode and remove / cleanup some Python snippets
Diffstat (limited to '.emacs.d/snippets/python-mode.statnett')
-rw-r--r--.emacs.d/snippets/python-mode.statnett/classmethod10
-rw-r--r--.emacs.d/snippets/python-mode.statnett/cls8
-rw-r--r--.emacs.d/snippets/python-mode.statnett/dec14
-rw-r--r--.emacs.d/snippets/python-mode.statnett/function8
-rw-r--r--.emacs.d/snippets/python-mode.statnett/import7
-rw-r--r--.emacs.d/snippets/python-mode.statnett/method7
-rw-r--r--.emacs.d/snippets/python-mode.statnett/not_impl2
-rw-r--r--.emacs.d/snippets/python-mode.statnett/pass5
-rw-r--r--.emacs.d/snippets/python-mode.statnett/property_getter3
-rw-r--r--.emacs.d/snippets/python-mode.statnett/property_setter2
-rw-r--r--.emacs.d/snippets/python-mode.statnett/scls7
-rw-r--r--.emacs.d/snippets/python-mode.statnett/script4
-rw-r--r--.emacs.d/snippets/python-mode.statnett/selfassign2
-rw-r--r--.emacs.d/snippets/python-mode.statnett/while7
-rw-r--r--.emacs.d/snippets/python-mode.statnett/with7
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
7def ${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# --
6class ${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# --
6def ${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# --
6def ${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# --
6import ${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# --
6def ${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# --
5raise NotImplementedError \ No newline at end of file 5raise 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# --
5pass \ 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 @@
7def ${1:name}(self): 7def ${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):
12def $1(self, value): 12def $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# --
6class ${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
8def main(inargs=None): 9def main(inargs=None):
9 """main entry point""" 10 """main entry point"""
10 $0 11 $0
11 12
12 13if __name__ == '__main__':
13if __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# --
6self.$1 = $1 \ No newline at end of file 6self._$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# --
6while ${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# --
6with ${1:expr}${2: as ${3:alias}}:
7 $0 \ No newline at end of file