diff options
| author | Olivier Perret <Olivier.Perret@mailbox.org> | 2018-12-19 10:10:26 +0100 |
|---|---|---|
| committer | Olivier Perret <Olivier.Perret@mailbox.org> | 2018-12-19 10:20:11 +0100 |
| commit | f085e43bf9c9d1fc7da4cd3f1c1b03ac2419d30e (patch) | |
| tree | b0634546f113661e537aaf335e3e3d88298765f3 /rc/base/java.kak | |
| parent | d8466f0f39c63eb92dce9c3ad15bc11cc06efa3a (diff) | |
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
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 75d73c96..7caa5aee 100644 --- a/rc/base/java.kak +++ b/rc/base/java.kak @@ -56,7 +56,7 @@ hook -group java-highlight global WinSetOption filetype=java %{ hook global WinSetOption filetype=java %{ # cleanup trailing whitespaces when exiting insert mode - hook window ModeChange insert:.* -group java-hooks %{ try %{ execute-keys -draft <a-x>s^\h+$<ret>d } } + hook window ModeChange 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 |
