From aee70ba69aba2d2cf142a86b650ba1b994c3bacb Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 12 Sep 2018 11:12:12 +0200 Subject: Change the keys for snippets false function and true. Add new snippets: docstring_param docstring_return docstring_rtype docstring_type --- .emacs.d/snippets/python-mode/docstring_param | 5 +++++ .emacs.d/snippets/python-mode/docstring_return | 5 +++++ .emacs.d/snippets/python-mode/docstring_rtype | 5 +++++ .emacs.d/snippets/python-mode/docstring_type | 5 +++++ .emacs.d/snippets/python-mode/false | 2 +- .emacs.d/snippets/python-mode/function | 2 +- .emacs.d/snippets/python-mode/true | 2 +- 7 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .emacs.d/snippets/python-mode/docstring_param create mode 100644 .emacs.d/snippets/python-mode/docstring_return create mode 100644 .emacs.d/snippets/python-mode/docstring_rtype create mode 100644 .emacs.d/snippets/python-mode/docstring_type 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 @@ +# -*- mode: snippet -*- +# name: docstring_param +# key: P +# -- +: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 @@ +# -*- mode: snippet -*- +# name: docstring_return +# key: R +# -- +: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 @@ +# -*- mode: snippet -*- +# name: docstring_rtype +# key: RT +# -- +: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 @@ +# -*- mode: snippet -*- +# name: docstring_type +# key: T +# -- +: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 @@ # -*- mode: snippet -*- # name: False -# key: F +# key: f # -- False$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 @@ # -*- mode: snippet -*- # name: function -# key: f +# key: fn # group: definitions # -- def ${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 @@ # -*- mode: snippet -*- # name: True -# key: T +# key: t # -- True$0 \ No newline at end of file -- cgit v1.3