summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode
diff options
context:
space:
mode:
authorSimeon Simeonov2018-09-12 11:12:12 +0200
committerSimeon Simeonov2018-09-12 11:12:12 +0200
commitaee70ba69aba2d2cf142a86b650ba1b994c3bacb (patch)
treea5df00995e0fec32cb9cbf768078366250a2723f /.emacs.d/snippets/python-mode
parent31bc48e244a9aacf817e6009c5789ae55849022d (diff)
Change the keys for snippets false function and true. Add new snippets: docstring_param docstring_return docstring_rtype docstring_type
Diffstat (limited to '.emacs.d/snippets/python-mode')
-rw-r--r--.emacs.d/snippets/python-mode/docstring_param5
-rw-r--r--.emacs.d/snippets/python-mode/docstring_return5
-rw-r--r--.emacs.d/snippets/python-mode/docstring_rtype5
-rw-r--r--.emacs.d/snippets/python-mode/docstring_type5
-rw-r--r--.emacs.d/snippets/python-mode/false2
-rw-r--r--.emacs.d/snippets/python-mode/function2
-rw-r--r--.emacs.d/snippets/python-mode/true2
7 files changed, 23 insertions, 3 deletions
diff --git a/.emacs.d/snippets/python-mode/docstring_param b/.emacs.d/snippets/python-mode/docstring_param
new file mode 100644
index 0000000..a371d93
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/docstring_param
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: docstring_param
3# key: P
4# --
5:param $1: $0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/docstring_return b/.emacs.d/snippets/python-mode/docstring_return
new file mode 100644
index 0000000..90c05e5
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/docstring_return
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: docstring_return
3# key: R
4# --
5:return: $0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/docstring_rtype b/.emacs.d/snippets/python-mode/docstring_rtype
new file mode 100644
index 0000000..24943bc
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/docstring_rtype
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: docstring_rtype
3# key: RT
4# --
5:rtype: $0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/docstring_type b/.emacs.d/snippets/python-mode/docstring_type
new file mode 100644
index 0000000..0a9e154
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/docstring_type
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: docstring_type
3# key: T
4# --
5:type $1: $0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/false b/.emacs.d/snippets/python-mode/false
index 9f95197..f7f7b02 100644
--- a/.emacs.d/snippets/python-mode/false
+++ b/.emacs.d/snippets/python-mode/false
@@ -1,5 +1,5 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2# name: False 2# name: False
3# key: F 3# key: f
4# -- 4# --
5False$0 \ No newline at end of file 5False$0 \ No newline at end of file
diff --git a/.emacs.d/snippets/python-mode/function b/.emacs.d/snippets/python-mode/function
index d7e8f12..97fe03f 100644
--- a/.emacs.d/snippets/python-mode/function
+++ b/.emacs.d/snippets/python-mode/function
@@ -1,6 +1,6 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2# name: function 2# name: function
3# key: f 3# key: fn
4# group: definitions 4# group: definitions
5# -- 5# --
6def ${1:fun}(${2:args}): 6def ${1:fun}(${2:args}):
diff --git a/.emacs.d/snippets/python-mode/true b/.emacs.d/snippets/python-mode/true
index c8f2033..096dc9e 100644
--- a/.emacs.d/snippets/python-mode/true
+++ b/.emacs.d/snippets/python-mode/true
@@ -1,5 +1,5 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2# name: True 2# name: True
3# key: T 3# key: t
4# -- 4# --
5True$0 \ No newline at end of file 5True$0 \ No newline at end of file