diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-10-23 22:10:06 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-10-23 22:10:06 +1100 |
| commit | 362021c1d3d225996beb112c4fea207c58e214ce (patch) | |
| tree | e1c39e7ef9b74d766881388bdca7934983d991ee /rc/filetype/python.kak | |
| parent | ab6e7f8b0e16ff4b2f066271307e33d1a1e26a90 (diff) | |
| parent | 21614cb06ea4f7a7349c628e5b8a754f730b2f0d (diff) | |
Merge remote-tracking branch 'lenormf/key-semicolon'
Diffstat (limited to 'rc/filetype/python.kak')
| -rw-r--r-- | rc/filetype/python.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak index b88f5343..93f9a618 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 pop: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 <semicolon> <a-x> s ^\h+$ <ret> d } } hook -once -always window WinSetOption filetype=.* %{ remove-hooks window python-.+ } } @@ -145,7 +145,7 @@ define-command -hidden python-indent-on-new-line %{ # copy '#' comment prefix and following white spaces try %{ execute-keys -draft k <a-x> s ^\h*#\h* <ret> y jgh P } # preserve previous line indent - try %{ execute-keys -draft \; K <a-&> } + try %{ execute-keys -draft <semicolon> K <a-&> } # cleanup trailing whitespaces from previous line try %{ execute-keys -draft k <a-x> s \h+$ <ret> d } # indent after line ending with : |
