From 7a6bb0f05e349068b0a89514f1da33d6d7de30a9 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 24 Apr 2012 23:29:38 +0200 Subject: emacs.d/lisp/yasnippet: added yasnippet --- emacs.d/lisp/yasnippet/snippets/python-mode/propg | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 emacs.d/lisp/yasnippet/snippets/python-mode/propg (limited to 'emacs.d/lisp/yasnippet/snippets/python-mode/propg') diff --git a/emacs.d/lisp/yasnippet/snippets/python-mode/propg b/emacs.d/lisp/yasnippet/snippets/python-mode/propg new file mode 100644 index 0000000..63a9d98 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/python-mode/propg @@ -0,0 +1,9 @@ +#contributor : Julio Carlos Menendez +#name : _get_foo ... foo=property(...) +# -- +def _get_${1:foo}(self): + return self._$1 + +$1 = property(_get_$1) + +$0 -- cgit v1.2.3