From 69acbbc29733f3678192dc0e04be09048fccd967 Mon Sep 17 00:00:00 2001 From: James Ferguson Date: Mon, 9 Dec 2013 11:28:07 -0500 Subject: [PATCH] python-mode/super: autogenerate class/method Auto-fill class and function name for the super call. --- python-mode/super | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-mode/super b/python-mode/super index d9e9c34..23fba5d 100644 --- a/python-mode/super +++ b/python-mode/super @@ -3,4 +3,5 @@ # key: super # group: object oriented # -- -super(${1:Class}, self).${2:function}(${3:args}) \ No newline at end of file +super(`(replace-regexp-in-string "\\([.]\\)[^.]+$" ", self)." (python-info-current-defun) nil nil 1)`($1) +$0 \ No newline at end of file