summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimeon Simeonov2020-05-25 09:57:23 +0200
committerSimeon Simeonov2020-05-25 09:57:23 +0200
commit6185b8f74292b15acc427e9b978d1bb4c57038c0 (patch)
treedb0a9194865e656576755d32ff4bb9e94e18b7ce
parenteabfcb9092b4ee31acc51357ee681d77f06213c4 (diff)
Cleanup Python snippets
-rw-r--r--.emacs.d/snippets/python-mode/__getitem__7
-rw-r--r--.emacs.d/snippets/python-mode/__new__8
-rw-r--r--.emacs.d/snippets/python-mode/__setitem__7
-rw-r--r--.emacs.d/snippets/python-mode/arg7
-rw-r--r--.emacs.d/snippets/python-mode/class_doxygen_doc11
-rw-r--r--.emacs.d/snippets/python-mode/cls1
-rw-r--r--.emacs.d/snippets/python-mode/deftest7
-rw-r--r--.emacs.d/snippets/python-mode/eq7
-rw-r--r--.emacs.d/snippets/python-mode/function1
-rw-r--r--.emacs.d/snippets/python-mode/function_doxygen_doc15
-rw-r--r--.emacs.d/snippets/python-mode/parse_args9
-rw-r--r--.emacs.d/snippets/python-mode/reg7
-rw-r--r--.emacs.d/snippets/python-mode/script7
-rw-r--r--.emacs.d/snippets/python-mode/unicode7
-rw-r--r--.emacs.d/snippets/python-mode/utf85
15 files changed, 8 insertions, 98 deletions
diff --git a/.emacs.d/snippets/python-mode/__getitem__ b/.emacs.d/snippets/python-mode/__getitem__
deleted file mode 100644
index 939bd1a..0000000
--- a/.emacs.d/snippets/python-mode/__getitem__
+++ /dev/null
@@ -1,7 +0,0 @@
1# -*- mode: snippet -*-
2# name: __getitem__
3# key: getit
4# group: dunder methods
5# --
6def __getitem__(self, ${1:key}):
7 $0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/__new__ b/.emacs.d/snippets/python-mode/__new__
deleted file mode 100644
index 8ccb151..0000000
--- a/.emacs.d/snippets/python-mode/__new__
+++ /dev/null
@@ -1,8 +0,0 @@
1# -*- mode: snippet -*-
2# name: __new__
3# key: new
4# group: dunder methods
5# --
6def __new__(mcs, name, bases, dct):
7 $0
8 return type.__new__(mcs, name, bases, dct)
diff --git a/.emacs.d/snippets/python-mode/__setitem__ b/.emacs.d/snippets/python-mode/__setitem__
deleted file mode 100644
index c7db5b1..0000000
--- a/.emacs.d/snippets/python-mode/__setitem__
+++ /dev/null
@@ -1,7 +0,0 @@
1# -*- mode: snippet -*-
2# name: __setitem__
3# key: setit
4# group: dunder methods
5# --
6def __setitem__(self, ${1:key}, ${2:val}):
7 $0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/arg b/.emacs.d/snippets/python-mode/arg
deleted file mode 100644
index f5145ec..0000000
--- a/.emacs.d/snippets/python-mode/arg
+++ /dev/null
@@ -1,7 +0,0 @@
1# -*- mode: snippet -*-
2# name: arg
3# key: arg
4# group: argparser
5# --
6parser.add_argument('-$1', '--$2',
7 $0)
diff --git a/.emacs.d/snippets/python-mode/class_doxygen_doc b/.emacs.d/snippets/python-mode/class_doxygen_doc
deleted file mode 100644
index e8c6fa4..0000000
--- a/.emacs.d/snippets/python-mode/class_doxygen_doc
+++ /dev/null
@@ -1,11 +0,0 @@
1# -*- mode: snippet -*-
2# contributor: Dan Pitic <dpitic@gmail.com>
3# name: Class Doxygen Doc
4# key: doxy_class
5# group: doxygen
6# --
7"""
8@brief ${1:class description}
9
10@details ${2:detailed description}
11""" \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/cls b/.emacs.d/snippets/python-mode/cls
index 3e3863a..3dbd391 100644
--- a/.emacs.d/snippets/python-mode/cls
+++ b/.emacs.d/snippets/python-mode/cls
@@ -4,4 +4,5 @@
4# group: object oriented 4# group: object oriented
5# -- 5# --
6class ${1:class}(${2:object}): 6class ${1:class}(${2:object}):
7 """"""
7 $0 8 $0
diff --git a/.emacs.d/snippets/python-mode/deftest b/.emacs.d/snippets/python-mode/deftest
deleted file mode 100644
index 394553a..0000000
--- a/.emacs.d/snippets/python-mode/deftest
+++ /dev/null
@@ -1,7 +0,0 @@
1# -*- mode: snippet -*-
2# name: deftest
3# key: dt
4# group: testing
5# --
6def test_${1:long_name}(self):
7 $0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/eq b/.emacs.d/snippets/python-mode/eq
deleted file mode 100644
index e19c328..0000000
--- a/.emacs.d/snippets/python-mode/eq
+++ /dev/null
@@ -1,7 +0,0 @@
1# -*- mode: snippet -*-
2# name: __eq__
3# key: eq
4# group: dunder methods
5# --
6def __eq__(self, other):
7 return self.$1 == other.$1 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/function b/.emacs.d/snippets/python-mode/function
index 97fe03f..5a39d8f 100644
--- a/.emacs.d/snippets/python-mode/function
+++ b/.emacs.d/snippets/python-mode/function
@@ -4,4 +4,5 @@
4# group: definitions 4# group: definitions
5# -- 5# --
6def ${1:fun}(${2:args}): 6def ${1:fun}(${2:args}):
7 """"""
7 $0 8 $0
diff --git a/.emacs.d/snippets/python-mode/function_doxygen_doc b/.emacs.d/snippets/python-mode/function_doxygen_doc
deleted file mode 100644
index f42b999..0000000
--- a/.emacs.d/snippets/python-mode/function_doxygen_doc
+++ /dev/null
@@ -1,15 +0,0 @@
1# -*- mode: snippet -*-
2# contributor: Dan Pitic <dpitic@gmail.com>
3# name: Function Doxygen Doc
4# key: doxy_func
5# group: doxygen
6# --
7"""
8@brief ${1:function description}
9
10@details ${2:detailed description}
11
12@param ${3:param}
13
14@return ${4:return type}
15""" \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/parse_args b/.emacs.d/snippets/python-mode/parse_args
deleted file mode 100644
index aa61070..0000000
--- a/.emacs.d/snippets/python-mode/parse_args
+++ /dev/null
@@ -1,9 +0,0 @@
1# -*- mode: snippet -*-
2# name: parse_args
3# key: pargs
4# group: argparser
5# --
6def parse_arguments():
7 parser = argparse.ArgumentParser(description='$1')
8 $0
9 return parser.parse_args() \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/reg b/.emacs.d/snippets/python-mode/reg
deleted file mode 100644
index c4ebeac..0000000
--- a/.emacs.d/snippets/python-mode/reg
+++ /dev/null
@@ -1,7 +0,0 @@
1# -*- mode: snippet -*-
2# name: reg
3# key: reg
4# group : general
5# --
6${1:regexp} = re.compile(r"${2:expr}")
7$0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/script b/.emacs.d/snippets/python-mode/script
index 931074a..ac15584 100644
--- a/.emacs.d/snippets/python-mode/script
+++ b/.emacs.d/snippets/python-mode/script
@@ -6,5 +6,10 @@
6# -*- coding: utf-8 -*- 6# -*- coding: utf-8 -*-
7 7
8 8
9def main(inargs=None):
10 """main entry point"""
11 $0
12
13
9if __name__ == '__main__': 14if __name__ == '__main__':
10 $0 \ No newline at end of file 15 main()
diff --git a/.emacs.d/snippets/python-mode/unicode b/.emacs.d/snippets/python-mode/unicode
deleted file mode 100644
index 52d6b8d..0000000
--- a/.emacs.d/snippets/python-mode/unicode
+++ /dev/null
@@ -1,7 +0,0 @@
1# -*- mode: snippet -*-
2# name: __unicode__
3# key: un
4# group: dunder methods
5# --
6def __unicode__(self):
7 $0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/utf8 b/.emacs.d/snippets/python-mode/utf8
deleted file mode 100644
index 2ebd82e..0000000
--- a/.emacs.d/snippets/python-mode/utf8
+++ /dev/null
@@ -1,5 +0,0 @@
1# -*- mode: snippet -*-
2# name: utf-8 encoding
3# key: utf8
4# --
5# -*- coding: utf-8 -*-