From 5ab60cde51887ce3093d49faeab986d4f7587be7 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 2 Jan 2017 04:20:05 +0000 Subject: [PATCH] Rename python indentation command to be more consistent We use `-` as word separator, and there is no need for leading underscore. --- rc/core/python.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } }