summaryrefslogtreecommitdiff
path: root/rc/filetype/java.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/java.kak
parent3a36a2486e12be9150e28fa81ac707d65c425d45 (diff)
Replace ModeChange hooks by ModePush and ModePop
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd hooks. Closes #2545
Diffstat (limited to 'rc/filetype/java.kak')
-rw-r--r--rc/filetype/java.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/java.kak b/rc/filetype/java.kak
index 0fd2bec9..9db24740 100644
--- a/rc/filetype/java.kak
+++ b/rc/filetype/java.kak
@@ -9,7 +9,7 @@ hook global WinSetOption filetype=java %{
require-module java
# cleanup trailing whitespaces when exiting insert mode
- hook window ModeChange insert:.* -group java-trim-indent %{ try %{ execute-keys -draft <a-x>s^\h+$<ret>d } }
+ hook window ModeChange pop:insert:.* -group java-trim-indent %{ try %{ execute-keys -draft <a-x>s^\h+$<ret>d } }
hook window InsertChar \n -group java-indent java-indent-on-new-line
hook window InsertChar \{ -group java-indent java-indent-on-opening-curly-brace
hook window InsertChar \} -group java-indent java-indent-on-closing-curly-brace