python-mode/super: autogenerate class/method
Auto-fill class and function name for the super call.
This commit is contained in:
parent
16154e1462
commit
69acbbc297
1 changed files with 2 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue