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

View file

@ -3,4 +3,5 @@
# key: super # key: super
# group: object oriented # 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