summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-01-21 10:35:05 +1100
committerMaxime Coste <mawww@kakoune.org>2018-01-21 10:35:05 +1100
commit43f50c0852a6f95abbcdf81f9d3bab9eeefbde0d (patch)
tree3712d89af44cbe664458ef13dad7ac1b8c3276b7 /rc/core/python.kak
parentd22c989984348dc407fcebff565267f15384b0d9 (diff)
Convert bundled scripts to ModeChange hook
Diffstat (limited to 'rc/core/python.kak')
-rw-r--r--rc/core/python.kak2
1 files changed, 1 insertions, 1 deletions
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 \; <a-x> s ^\h+$ <ret> d } }
+ hook window ModeChange insert:.* -group python-indent %{ try %{ execute-keys -draft \; <a-x> s ^\h+$ <ret> d } }
}
hook -group python-highlight global WinSetOption filetype=(?!python).* %{ remove-highlighter window/python }