From f085e43bf9c9d1fc7da4cd3f1c1b03ac2419d30e Mon Sep 17 00:00:00 2001 From: Olivier Perret Date: Wed, 19 Dec 2018 10:10:26 +0100 Subject: Unify auto-indent trimming hooks * ModeChange hooks that remove indent now belong to *-trim-indent groups, instead of just -indent * *-filter-around-selections hooks and commands have been renamed to trim-indent for clarity --- 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 fac94ae1..fb9477b9 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -143,6 +143,6 @@ hook -group python-highlight global WinSetOption filetype=python %{ 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 ModeChange insert:.* -group python-indent %{ try %{ execute-keys -draft \; s ^\h+$ d } } + hook window ModeChange insert:.* -group python-trim-indent %{ try %{ execute-keys -draft \; s ^\h+$ d } } hook -once -always window WinSetOption filetype=.* %{ remove-hooks window python-.+ } } -- cgit v1.2.3