From 7bf6712498ad2618bee7bf5b3866fb6da0772339 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 19 Sep 2013 22:27:58 +0200 Subject: All snippets imported, init file polished --- .emacs.d/mysnippets/text-mode/python-mode/propsg | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .emacs.d/mysnippets/text-mode/python-mode/propsg (limited to '.emacs.d/mysnippets/text-mode/python-mode/propsg') diff --git a/.emacs.d/mysnippets/text-mode/python-mode/propsg b/.emacs.d/mysnippets/text-mode/python-mode/propsg new file mode 100644 index 0000000..e09d82a --- /dev/null +++ b/.emacs.d/mysnippets/text-mode/python-mode/propsg @@ -0,0 +1,12 @@ +#contributor : Julio Carlos Menendez +#name : _get_foo ... _set_foo ... foo=property(...) +# -- +def _set_${1:foo}(self, value): + self._$1 = value + +def _get_$1(self): + return self._$1 + +$1 = property(_get_$1, _set_$1) + +$0 -- cgit v1.3