From 43f50c0852a6f95abbcdf81f9d3bab9eeefbde0d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 21 Jan 2018 10:35:05 +1100 Subject: Convert bundled scripts to ModeChange hook --- rc/core/python.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc/core/python.kak') diff --git a/rc/core/python.kak b/rc/core/python.kak index a0f66217..aee37957 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -147,7 +147,7 @@ hook -group python-highlight global WinSetOption filetype=python %{ add-highligh hook global WinSetOption filetype=python %{ 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 %{ execute-keys -draft \; s ^\h+$ d } } + hook window ModeChange insert:.* -group python-indent %{ try %{ execute-keys -draft \; s ^\h+$ d } } } hook -group python-highlight global WinSetOption filetype=(?!python).* %{ remove-highlighter window/python } -- cgit v1.2.3