diff --git a/rc/core/python.kak b/rc/core/python.kak index fc09beaa..337c4b2c 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -63,7 +63,7 @@ addhl -group /python/comment fill comment # Commands # ‾‾‾‾‾‾‾‾ -def -hidden _python_indent_on_new_line %{ +def -hidden python-indent-on-new-line %{ eval -draft -itersel %{ # preserve previous line indent try %{ exec -draft K } @@ -82,7 +82,7 @@ def -hidden _python_indent_on_new_line %{ hook -group python-highlight global WinSetOption filetype=python %{ addhl ref python } hook global WinSetOption filetype=python %{ - hook window InsertChar \n -group python-indent _python_indent_on_new_line + hook window InsertChar \n -group python-indent python-indent-on-new-line # cleanup trailing whitespaces on current line insert end hook window InsertEnd .* -group python-indent %{ try %{ exec -draft \; s ^\h+$ d } } }