summaryrefslogtreecommitdiff
path: root/rc/filetype/python.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-10-16 20:19:43 +1100
committerMaxime Coste <mawww@kakoune.org>2019-10-16 20:45:53 +1100
commite4fb70ebec80edcd17f0e00823780e4798a3fb1a (patch)
tree8e45c2e340a63ca05aa73f8a44bf3c9d59494c0b /rc/filetype/python.kak
parent3a36a2486e12be9150e28fa81ac707d65c425d45 (diff)
Replace ModeChange hooks by ModePush and ModePop
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd hooks. Closes #2545
Diffstat (limited to 'rc/filetype/python.kak')
-rw-r--r--rc/filetype/python.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak
index 91dcb1ef..b88f5343 100644
--- a/rc/filetype/python.kak
+++ b/rc/filetype/python.kak
@@ -18,7 +18,7 @@ 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-trim-indent %{ try %{ execute-keys -draft \; <a-x> s ^\h+$ <ret> d } }
+ hook window ModeChange pop:insert:.* -group python-trim-indent %{ try %{ execute-keys -draft \; <a-x> s ^\h+$ <ret> d } }
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window python-.+ }
}