python-mode/super: autogenerate class/method

Auto-fill class and function name for the super call.
This commit is contained in:
James Ferguson 2013-12-09 11:28:07 -05:00
parent 16154e1462
commit 69acbbc297
1 changed files with 2 additions and 1 deletions

View File

@ -3,4 +3,5 @@
# key: super
# group: object oriented
# --
super(${1:Class}, self).${2:function}(${3:args})
super(`(replace-regexp-in-string "\\([.]\\)[^.]+$" ", self)." (python-info-current-defun) nil nil 1)`($1)
$0