diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-01-21 10:35:05 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-01-21 10:35:05 +1100 |
| commit | 43f50c0852a6f95abbcdf81f9d3bab9eeefbde0d (patch) | |
| tree | 3712d89af44cbe664458ef13dad7ac1b8c3276b7 /rc/base/java.kak | |
| parent | d22c989984348dc407fcebff565267f15384b0d9 (diff) | |
Convert bundled scripts to ModeChange hook
Diffstat (limited to 'rc/base/java.kak')
| -rw-r--r-- | rc/base/java.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/base/java.kak b/rc/base/java.kak index 2d107e43..a28a80d5 100644 --- a/rc/base/java.kak +++ b/rc/base/java.kak @@ -51,7 +51,7 @@ define-command -hidden java-indent-on-closing-curly-brace %[ # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ hook global WinSetOption filetype=java %{ # cleanup trailing whitespaces when exiting insert mode - hook window InsertEnd .* -group java-hooks %{ try %{ execute-keys -draft <a-x>s^\h+$<ret>d } } + hook window ModeChange insert:.* -group java-hooks %{ 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 |
