summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
authorOlivier Perret <Olivier.Perret@mailbox.org>2018-12-19 10:10:26 +0100
committerOlivier Perret <Olivier.Perret@mailbox.org>2018-12-19 10:20:11 +0100
commitf085e43bf9c9d1fc7da4cd3f1c1b03ac2419d30e (patch)
treeb0634546f113661e537aaf335e3e3d88298765f3 /rc/core/python.kak
parentd8466f0f39c63eb92dce9c3ad15bc11cc06efa3a (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/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 fac94ae1..fb9477b9 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -143,6 +143,6 @@ hook -group python-highlight global WinSetOption filetype=python %{
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-indent %{ try %{ execute-keys -draft \; <a-x> s ^\h+$ <ret> d } }
+ hook window ModeChange 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-.+ }
}